<html>
  <head>
	  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>i5ting_ztree_toc:api</title>
		<link href="toc/style/github-bf51422f4bb36427d391e4b75a1daa083c2d840e.css" media="all" rel="stylesheet" type="text/css"/>
		<link href="toc/style/github2-d731afd4f624c99a4b19ad69f3083cd6d02b81d5.css" media="all" rel="stylesheet" type="text/css"/>
		<link href="toc/css/zTreeStyle/zTreeStyle.css" media="all" rel="stylesheet" type="text/css"/>
	  <style>
		pre {
		    counter-reset: line-numbering;
		    border: solid 1px #d9d9d9;
		    border-radius: 0;
		    background: #fff;
		    padding: 0;
		    line-height: 23px;
		    margin-bottom: 30px;
		    white-space: pre;
		    overflow-x: auto;
		    word-break: inherit;
		    word-wrap: inherit;
		}

		pre a::before {
		  content: counter(line-numbering);
		  counter-increment: line-numbering;
		  padding-right: 1em; /* space after numbers */
		  width: 25px;
		  text-align: right;
		  opacity: 0.7;
		  display: inline-block;
		  color: #aaa;
		  background: #eee;
		  margin-right: 16px;
		  padding: 2px 10px;
		  font-size: 13px;
		  -webkit-touch-callout: none;
		  -webkit-user-select: none;
		  -khtml-user-select: none;
		  -moz-user-select: none;
		  -ms-user-select: none;
		  user-select: none;
		}

		pre a:first-of-type::before {
		  padding-top: 10px;
		}

		pre a:last-of-type::before {
		  padding-bottom: 10px;
		}

		pre a:only-of-type::before {
		  padding: 10px;
		}

		.highlight { background-color: #ffffcc } /* RIGHT */
		</style>
  </head>
  <body>
	  <div>
				<div style='width:25%;'>
						<ul id="tree" class="ztree" style='width:100%'>

						</ul>
				</div>
        <div id='readme' style='width:70%;margin-left:20%;'>
          	<article class='markdown-body'>
            	<h1 id="-">接入必读项</h1>
<blockquote>
<ul>
<li>版本: 2.0</li>
<li>日期: 2021/10/18</li>
<li>URL: <a href="http://new.storages.top">http://new.storages.top</a></li>
<li>所有请求均需带token。token组装说明：token实际值为登录后响应参数中的用户id和token组合，以空格拼接。详见下图：</li>
</ul>
</blockquote>
<blockquote>
<p> <img src="http://new.storages.top/header.png" width="70%"></p>
</blockquote>
<blockquote>
<p>需要验证权限的接口,<code>role_id</code>必传</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>role_id</td>
<td>是</td>
<td>否</td>
<td>权限id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>返回<code>code</code>说明</p>
</blockquote>
<table>
<thead>
<tr>
<th>值</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>success</td>
</tr>
<tr>
<td>1</td>
<td>faild</td>
</tr>
<tr>
<td>2</td>
<td>token验证失败</td>
</tr>
<tr>
<td>3</td>
<td>没有权限</td>
</tr>
<tr>
<td>4</td>
<td>权限信息变更</td>
</tr>
<tr>
<td>5</td>
<td>子账号已被禁用</td>
</tr>
<tr>
<td>6</td>
<td>您已在别处登陆</td>
</tr>
<tr>
<td>7</td>
<td>账号或已被删除，请联系管理员</td>
</tr>
</tbody>
</table>
<h1 id="-mr-sun-">登录注册(Mr Sun)</h1>
<h2 id="-">发送验证码</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>/send_code</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>mobile</td>
<td>是</td>
<td>否</td>
<td>手机号</td>
<td>string</td>
<td>1895555555</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;验证码已成功发送，请注意查收&quot;,
    &quot;data&quot;: &quot;&quot;
}

</code></pre><h2 id="-">登录注册</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>/login</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>公共请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>登陆方式(0-&gt;验证码登录(主账号);1-&gt;密码登录(子账号))</td>
<td>integer</td>
<td>0</td>
</tr>
<tr>
<td>device</td>
<td>是</td>
<td>否</td>
<td>当前登陆设备(1-安卓 2-ios 3-pc 4-微信小程序 5-抖音小程序)</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>type 0</code> 请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>mobile</td>
<td>是</td>
<td>否</td>
<td>手机号</td>
<td>string</td>
<td>1895555555</td>
</tr>
<tr>
<td>code</td>
<td>是</td>
<td>否</td>
<td>验证码</td>
<td>string</td>
<td>222222</td>
</tr>
<tr>
<td>mini_code</td>
<td>否</td>
<td>否</td>
<td>code(获取微信openid）</td>
<td>string</td>
<td>222222</td>
</tr>
<tr>
<td>bind_id</td>
<td>否</td>
<td>否</td>
<td>分享者id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>device_id</td>
<td>否</td>
<td>否</td>
<td>设备id</td>
<td>string</td>
<td>dvasdasv12edwd23</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>type 1</code> 请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>username</td>
<td>是</td>
<td>否</td>
<td>用户名</td>
<td>string</td>
<td>test</td>
</tr>
<tr>
<td>password</td>
<td>是</td>
<td>否</td>
<td>密码</td>
<td>string</td>
<td>123465</td>
</tr>
<tr>
<td>device_id</td>
<td>否</td>
<td>否</td>
<td>设备id</td>
<td>string</td>
<td>dvasdasv12edwd23</td>
</tr>
</tbody>
</table>
<blockquote>
<p>备注</p>
<pre><code>万能验证码为`666666`, 仅支持登录方式为主账号时使用，参数`device`正常传值即可
</code></pre></blockquote>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;user_id&quot;: 1,//用户id
        &quot;token&quot;: &quot;s1VuRi87NjmXmQViP6VQ8bl6rL3stOB10kI3D5UgUmFhm6XTBTrZIqC+vCGPZD9PC+dwQk+HtaegyKKqqGW5Xbd5ZtlVu5sZ66dLz4I84F2r/+1zIFWnXYSKkE+0RycXsFJ46Umq0iIIlX6bFDUyhC3CXzOlRp9iVBWiH/6Azzw=&quot;,//token
        &quot;company_name&quot;: &quot;&quot;//公司名称
        &quot;bind_id&quot;: 0,//绑定的分享者id
        &quot;invite_num&quot;: 4,//分享数(分享后成功注册数)
        &quot;parent_id&quot;:  1,//生成分享链接使用的分享id
        &quot;is_main&quot;: 1; //账号类型;0:子;1:主;
        &quot;nickname&quot;: &quot;子账号&quot;//公司名称
        &quot;invite_num&quot;: 0,//成功邀请次数
        &quot;bind_id&quot;: 0,//分享来源id
        &quot;is_default_pwd&quot;: 0,//是否有修改默认密码;0:否;1:是;(子账号登录时返回，主账号登录无此参数)
        &quot;is_bind_openid&quot;: 1,//是否有绑定微信或小程序:0:否;1:是;
        &quot;is_vip&quot;: 0,    //是否开通vip;0:否;1:是;
        &quot;invite_info&quot;: [
            &quot;18519122462&quot;,
            &quot;15505523456&quot;
        ],//通过分享邀请并成功注册的账号信息
        &quot;module_info&quot;: [
            {
                &quot;id&quot;: 1,//一级权限模块id
                &quot;module_name&quot;: &quot;系统设置&quot;,//一级权限模块名
                &quot;upper_module_id&quot;: 0,//上级权限模块id
                &quot;module_img&quot;: null,//权限模块图标
                &quot;type&quot;: &quot;&quot;,//类型
                &quot;sort&quot;: &quot;&quot;,//排序
                &quot;second_module&quot;: [
                    {
                        &quot;id&quot;: 2,//二权限模块id
                        &quot;module_name&quot;: &quot;模块管理&quot;,//二级权限模块名
                        &quot;upper_module_id&quot;: 1,//上级权限模块id
                        &quot;module_img&quot;: null,//权限模块图标
                        &quot;type&quot;: &quot;&quot;//类型
                        &quot;sort&quot;: &quot;&quot;,//排序
                    },
                    ......
                ]
            }
        ]
    }
}

</code></pre><h1 id="-mr-sun-">单图上传(Mr Sun)</h1>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/upload_file</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>images</td>
<td>是</td>
<td>否</td>
<td>账号</td>
<td>file</td>
<td>*</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;/uploads/2021/10/23/F49fIWtXxvnPTm9wafV7WVxky0QKxKR1rjpYTKOh.jpg&quot;
}

</code></pre><h1 id="-">库管</h1>
<h2 id="-">我的仓库</h2>
<h3 id="-">仓库列表(孙武)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/storage_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,//当前页
        &quot;data&quot;: [
            {
                &quot;id&quot;: 48,//仓库id
                &quot;storage_name&quot;: &quot;B1-9栋&quot;,//仓库名
                &quot;storage_address&quot;: &quot;B1-9栋&quot;,//仓库地址
                &quot;user_id&quot;: 1079,//仓库负责人用户id
                &quot;delete_flag&quot;: 0,
                &quot;remarks&quot;: &quot;施艳梅&quot;,//备注
                &quot;main_id&quot;: 8,
                &quot;created_at&quot;: null,
                &quot;updated_at&quot;: &quot;2021-10-16 16:22:09&quot;,
                &quot;nickname&quot;: &quot;施艳梅&quot;,//仓库负责人用户昵称
                &quot;username&quot;: &quot;掌上仓管&quot;//仓库负责人账号名
            },
            ......
        ],
        &quot;per_page&quot;: &quot;10&quot;,//页面大小
    }
}
</code></pre><h3 id="-">添加仓库(孙武)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/create_storage</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>storage_name</td>
<td>是</td>
<td>否</td>
<td>仓库名称</td>
<td>string</td>
<td>1库房</td>
</tr>
<tr>
<td>storage_address</td>
<td>是</td>
<td>否</td>
<td>仓库地址</td>
<td>string</td>
<td>B1-10</td>
</tr>
<tr>
<td>remarks</td>
<td>否</td>
<td>否</td>
<td>当前页</td>
<td>string</td>
<td>存放物料</td>
</tr>
<tr>
<td>user_id</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">删除指定仓库(孙武)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/del_storage</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>仓库id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">修改仓库信息(孙武)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>修改仓库信息</td>
<td>http</td>
<td>post</td>
<td>api/edit_storage</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>仓库id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>storage_name</td>
<td>是</td>
<td>否</td>
<td>仓库名称</td>
<td>string</td>
<td>1库房</td>
</tr>
<tr>
<td>storage_address</td>
<td>是</td>
<td>否</td>
<td>仓库地址</td>
<td>string</td>
<td>B1-10</td>
</tr>
<tr>
<td>remarks</td>
<td>否</td>
<td>否</td>
<td>当前页</td>
<td>string</td>
<td>存放物料</td>
</tr>
<tr>
<td>user_id</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1079</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 1,//新生成的仓库id
        &quot;storage_name&quot;: &quot;1库房&quot;,//仓库名
        &quot;storage_address&quot;: &quot;B1-10&quot;,//仓库地址
        &quot;user_id&quot;: 1079,//仓库负责人id
        &quot;remarks&quot;: &quot;123&quot;,//备注
    }
}
</code></pre><h3 id="-">仓库列表-下拉框(孙武)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>下拉选择仓库</td>
<td>http</td>
<td>post</td>
<td>api/storage_select</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 33,//仓库id
            &quot;storage_name&quot;: &quot;B2-6&quot;//仓库名
            &quot;storage_address&quot;: &quot;B1-9栋&quot; //仓库地址
        },
        ......
    ]
}
</code></pre><h2 id="-">物料分类及类型管理</h2>
<h3 id="-">物料分类管理(孙武)</h3>
<h4 id="-">物料分类-下拉(孙武)</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td> 物料分类-下拉</td>
<td>http</td>
<td>post</td>
<td>api/materiel_class_select</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 127,//物料分类一级id
            &quot;class_name&quot;: &quot;防护用品&quot;,//物料分类一级名称
            &quot;class_no&quot;: &quot;edePWhUW&quot;,//一级分类编号
            &quot;class_info&quot;: [
                {
                    &quot;id&quot;: 139,//物料分类二级id
                    &quot;class_name&quot;: &quot;应急服装&quot;//物料分类二级名称
                    &quot;parent_id&quot;: 127,//上一级id
                    &quot;class_no&quot;: &quot;12346579&quot;//二级分类编号
                },
                {
                    &quot;id&quot;: 138,
                    &quot;class_name&quot;: &quot;其他类&quot;
                    &quot;class_no&quot;: &quot;12346579&quot;
                },
                ......
            ]
        },
        {
            &quot;id&quot;: 68,
            &quot;class_name&quot;: &quot;其他分类&quot;,
            &quot;class_info&quot;: []
        },
        ......
    ]
}
</code></pre><h4 id="-">新建物料分类(孙武)</h4>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/materiel_class_add</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>物料分类类型(0:一级分类;1:二级分类;)</td>
<td>integer</td>
<td>0</td>
</tr>
<tr>
<td>class_name</td>
<td>是</td>
<td>否</td>
<td>物料分类名称</td>
<td>sting</td>
<td>保温箱</td>
</tr>
<tr>
<td>class_no</td>
<td>是</td>
<td>否</td>
<td>物料分类编号(不能低于或超出8位字符长度)</td>
<td>sting</td>
<td>7udIZcaQ</td>
</tr>
<tr>
<td>parent_id</td>
<td>是</td>
<td>否</td>
<td>上级物料分类id(所添加的分类为一级分类时，默认为0)</td>
<td>integer</td>
<td>179</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 5032 //新增分类id
    }
}
</code></pre></blockquote>
<h4 id="-">删除分类(孙武)</h4>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/materiel_class_del</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>物料分类类型(0:一级分类;1:二级分类;)</td>
<td>integer</td>
<td>0</td>
</tr>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>物料分类名称</td>
<td>sting</td>
<td>71</td>
</tr>
</tbody>
</table>
<blockquote>
<p>备注</p>
<pre><code>1、一级分类下若存在未删除的二级分类，需先删除其所有二级分类后方可操作
2、二级分类下若存在未删除的物料类型，需先删除其所有物料类型后方可操作
</code></pre><p>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre></blockquote>
<h4 id="-">修改分类(孙武)</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/materiel_class_edit</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>物料分类id</td>
<td>integer</td>
<td>179</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>物料分类类型(0:一级分类;1:二级分类;)</td>
<td>integer</td>
<td>0</td>
</tr>
<tr>
<td>class_name</td>
<td>是</td>
<td>否</td>
<td>物料分类名称</td>
<td>sting</td>
<td>保温箱</td>
</tr>
<tr>
<td>class_no</td>
<td>是</td>
<td>否</td>
<td>物料分类编号(不能低于或超出8位字符长度)</td>
<td>sting</td>
<td>7udIZcaQ</td>
</tr>
<tr>
<td>parent_id</td>
<td>是</td>
<td>否</td>
<td>上级物料分类id(所修改的分类为一级分类时，默认为0)</td>
<td>integer</td>
<td>179</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">分类首页(孙武)</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/materiel_class_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>materiel_class_id</td>
<td>否</td>
<td>是</td>
<td>物料所属二级分类id;默认为0</td>
<td>integer</td>
<td>57</td>
</tr>
<tr>
<td>keyword</td>
<td>否</td>
<td>是</td>
<td>关键词(支持<code>物料名</code>,<code>物料型号</code>,<code>物料编号</code>,<code>一、二级分类名称</code>)</td>
<td>string</td>
<td>尸体袋</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 57,//物料一级分类id
            &quot;class_name&quot;: &quot;动物尸体袋&quot;,//物料一级分类名称
            &quot;class_no&quot;: &quot;&quot;,//一级分类编号
            &quot;class_info&quot;: [
                {
                    &quot;id&quot;: 109,//物料二级分类id
                    &quot;class_name&quot;: &quot;动物尸体袋&quot;,//物料二级分类名称
                    &quot;parent_id&quot;: 257,//上级分类id
                    &quot;class_no&quot;: &quot;&quot;,//二级分类编号
                    &quot;type_info&quot;: [
                        {
                            &quot;id&quot;: 732,//物料类型id
                            &quot;materiel_name&quot;: &quot;尸体袋1.2米印动物尸体袋&quot;,//物料类型名称
                            &quot;type_name&quot;: &quot;1.2米&quot;,//物料型号名称
                            &quot;materiel_img&quot;: null,//物料图
                            &quot;materiel_no&quot;: &quot;&quot;,//物料编号
                            &quot;materiel_class_id&quot;: 109,//物料二级分类id
                            &quot;main_id&quot;: 7,
                            &quot;remark&quot;: null,//备注
                            &quot;delete_flag&quot;: 0,
                            &quot;created_at&quot;: null,
                            &quot;updated_at&quot;: null,
                            &quot;sec_class_name&quot;: &quot;动物尸体袋&quot;,//物料二级分类名称
                            &quot;fir_class_name&quot;: &quot;动物尸体袋&quot;//物料一级分类名称
                        },
                        ......
                    ]
                }
            ]
            ......
        }
        ......
    ]
}
</code></pre><h4 id="-">物料分类随机编号(孙武)</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/materiel_class_rand_no</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;class_no&quot;: &quot;JCT6jHL3&quot;//分类编号
    }
}
</code></pre><h3 id="-">物料管理(孙武)</h3>
<h4 id="-">物料类型随机编号(孙武)</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/materiel_type_rand_no</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;class_no&quot;: &quot;8fx7SDyw&quot;//分类编号
    }
}
</code></pre><h4 id="-">添加物料(孙武)</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/materiel_type_add</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_name</td>
<td>是</td>
<td>否</td>
<td>物料名称</td>
<td>sting</td>
<td>保温箱</td>
</tr>
<tr>
<td>type_name</td>
<td>是</td>
<td>否</td>
<td>物料型号名称</td>
<td>sting</td>
<td>6L</td>
</tr>
<tr>
<td>materiel_img</td>
<td>否</td>
<td>是</td>
<td>物料类型图</td>
<td>sting</td>
<td><code>xxx.jpg</code> OR <code>xxx.png</code></td>
</tr>
<tr>
<td>materiel_no</td>
<td>是</td>
<td>否</td>
<td>物料编号</td>
<td>string</td>
<td>7udIZcaQ</td>
</tr>
<tr>
<td>materiel_class_id</td>
<td>是</td>
<td>否</td>
<td>物料二级分类id</td>
<td>integer</td>
<td>179</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>是</td>
<td>备注</td>
<td>string</td>
<td>这是备注</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 5032 //新增物料id
    }
}
</code></pre></blockquote>
<h4 id="-">删除物料(孙武)</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/materiel_type_del</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>物料类型id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre></blockquote>
<h4 id="-">修改物料(孙武)</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/materiel_type_deit</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>物料id</td>
<td>integer</td>
<td>177</td>
</tr>
<tr>
<td>materiel_name</td>
<td>是</td>
<td>否</td>
<td>物料名称</td>
<td>integer</td>
<td>保温箱</td>
</tr>
<tr>
<td>type_name</td>
<td>是</td>
<td>否</td>
<td>物料型号名称</td>
<td>sting</td>
<td>6L</td>
</tr>
<tr>
<td>materiel_img</td>
<td>否</td>
<td>是</td>
<td>物料类型图</td>
<td>sting</td>
<td><code>xxx.jpg</code> OR <code>xxx.png</code></td>
</tr>
<tr>
<td>materiel_no</td>
<td>是</td>
<td>否</td>
<td>物料编号</td>
<td>string</td>
<td>7udIZcaQ</td>
</tr>
<tr>
<td>materiel_class_id</td>
<td>是</td>
<td>否</td>
<td>物料二级分类id</td>
<td>integer</td>
<td>179</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>是</td>
<td>备注</td>
<td>string</td>
<td>这是备注</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre></blockquote>
<h4 id="-">物料类型列表-添加商品(孙武)</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>物料类型列表</td>
<td>http</td>
<td>post</td>
<td>api/materiel_type_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>materiel_class_id</td>
<td>否</td>
<td>是</td>
<td>物料所属二级分类id</td>
<td>integer</td>
<td>107</td>
</tr>
<tr>
<td>keyword</td>
<td>否</td>
<td>是</td>
<td>关键词(支持<code>物料名</code>,<code>物料型号</code>,<code>物料编号</code>)</td>
<td>string</td>
<td>电子体温计</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,//当前页
        &quot;data&quot;: [
            {
                &quot;id&quot;: 5590,//物料id
                &quot;materiel_name&quot;: &quot;小扑电池里用的&quot;,//物料名
                &quot;type_name&quot;: &quot;电池&quot;,//物料型号
                &quot;materiel_class_id&quot;: 107,//物料所属二级分类id
                &quot;length&quot;: &quot;0.00&quot;, //长度
                &quot;width&quot;: &quot;0.00&quot;,//宽度
                &quot;height&quot;: &quot;0.00&quot;,//高度
                &quot;weight&quot;: &quot;0.00&quot;,//重量
                &quot;attribute&quot;: &quot;&quot;,//属性
                &quot;cost&quot;: &quot;0.00&quot;,//成本
                &quot;main_id&quot;: 7,
                &quot;remark&quot;: null,
                &quot;delete_flag&quot;: 0,
                &quot;created_at&quot;: null,
                &quot;updated_at&quot;: null,
                &quot;materiel_img&quot;: null,//物料图
                &quot;materiel_no&quot;: &quot;&quot;,//物料编号
                &quot;s_class_id&quot;: 122,//二级分类id
                &quot;s_class_name&quot;: &quot;辅助工具&quot;,//二级分类名称
                &quot;s_class_no&quot;: &quot;&quot;,//二级分类编号
                &quot;f_class_name&quot;: &quot;工作箱&quot;,//一级分类名称
                &quot;f_class_no&quot;: &quot;&quot;,//一级分类编号
                &quot;f_class_id&quot;: 67//二级分类编号
                &quot;in_storage_num&quot;: 67,//物料在库数量,无数量时显示为`null`
                &quot;storage_id&quot;: 3,//仓库id
                &quot;storage_name&quot;: &quot;蚌埠掌上网络科技有限公司&quot;//仓库名称
            }
        ],
        &quot;total&quot;: &quot;10&quot;,//总条数
    }
}
</code></pre><h4 id="-">物料列表(孙武)</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/materiel_type_select</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>每页条数</td>
<td>integer</td>
<td>15</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>materiel_calss_id</td>
<td>否</td>
<td>否</td>
<td>二级分类id，默认为0</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>keyword</td>
<td>否</td>
<td>否</td>
<td>关键词</td>
<td>string</td>
<td>面膜</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,//当前页
        &quot;data&quot;: [
            {
                &quot;id&quot;: 558,  //物料商品id
                &quot;materiel_name&quot;: &quot;艾纯烟酰胺亮肤补水修护套盒&quot;,   //物料名
                &quot;type_name&quot;: &quot;10件套&quot;,    //型号
                &quot;materiel_img&quot;: null,   //物料商品图
                &quot;materiel_no&quot;: &quot;&quot;,  //物料编号
                &quot;materiel_class_id&quot;: 9, //物料商品二级分类id
                &quot;sec_class_name&quot;: &quot;护肤品套装&quot;,  //物料商品二级分类名
                &quot;fir_class_id&quot;: 3,  //物料商品一级分类id
                &quot;fir_class_name&quot;: &quot;美妆用品&quot;,    //物料商品一级分类名
                &quot;remark&quot;: &quot;美妆用品&quot;    //商品备注
                &quot;length&quot;: &quot;0.00&quot;, //长度
                &quot;width&quot;: &quot;0.00&quot;,//宽度
                &quot;height&quot;: &quot;0.00&quot;,//高度
                &quot;weight&quot;: &quot;0.00&quot;,//重量
                &quot;attribute&quot;: &quot;&quot;,//属性
                &quot;cost&quot;: &quot;0.00&quot;,//成本
            }
        ],
        ......
        &quot;total&quot;: 1//总数
    }
}
</code></pre><h4 id="-">指定物料类型详细信息(孙武)</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/materiel_type_info</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>物料类型id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 1,//物料类型id
        &quot;materiel_name&quot;: &quot;400ML注水冰盒&quot;,//物料类型名称
        &quot;type_name&quot;: &quot;400ML&quot;,//物料型号
        &quot;materiel_img&quot;: null,//物料图
        &quot;materiel_no&quot;: &quot;&quot;,//物料编号
        &quot;materiel_class_id&quot;: 71,//物料分类二级id
        &quot;remark&quot;: null,//物料备注
        &quot;length&quot;: &quot;0.00&quot;, //长度
        &quot;width&quot;: &quot;0.00&quot;,//宽度
        &quot;height&quot;: &quot;0.00&quot;,//高度
        &quot;weight&quot;: &quot;0.00&quot;,//重量
        &quot;attribute&quot;: &quot;&quot;,//属性
        &quot;cost&quot;: &quot;0.00&quot;,//成本
        &quot;sec_class_name&quot;: &quot;冷源&quot;,//物料二级分类名称
        &quot;fir_class_id&quot;: 56,//物料一级分类id
        &quot;fir_class_name&quot;: &quot;保温箱类&quot;//物料一级分类名称
    }
}
</code></pre><h2 id="-">套餐</h2>
<h3 id="-mr-sun-">套餐列表(Mr Sun)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/package_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>每页条数</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>keyword</td>
<td>否</td>
<td>是</td>
<td>关键词，支持对<code>分类名、套餐名、物料名称、物料型号和物料以及分类型号</code>检索</td>
<td>string</td>
<td>测试</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 189,
                &quot;package_name&quot;: &quot;黑桃套餐二&quot;,
                &#39;status&#39;: 1, //是否可操作;0:否;1:是;
                &quot;has_many_content&quot;: []
            },
            {
                &quot;id&quot;: 188,//套餐id
                &quot;package_name&quot;: &quot;黑桃套餐一&quot;,//套餐id
                &quot;has_many_content&quot;: [
                    {
                        &quot;id&quot;: 4,//套餐内容id
                        &quot;materiel_first_class_id&quot;: 3,//套餐内物料一级分类id
                        &quot;materiel_first_class_name&quot;: &quot;美妆用品&quot;,//套餐内物料一级分类名
                        &quot;materiel_first_class_no&quot;: &quot;&quot;,//套餐内物料一级分类编号
                        &quot;materiel_class_id&quot;: 7,//套餐内物料二级分类id
                        &quot;materiel_class_name&quot;: &quot;面膜&quot;,//套餐内物料二级分类名
                        &quot;materiel_class_no&quot;: &quot;&quot;,//套餐内物料二级分类编号
                        &quot;materiel_name&quot;: &quot;微精华舒缓修护面膜&quot;,//物料名
                        &quot;type_name&quot;: &quot;修护&quot;,//型号
                        &quot;materiel_no&quot;: &quot;&quot;,//物料编号
                        &quot;storage_id&quot;: 48,//仓库id
                        &quot;storage_name&quot;: &quot;B1-9栋&quot;,//仓库名
                        &quot;storage_address&quot;: &quot;B1-9栋&quot;,//仓库地址
                        &quot;storage_manage_id&quot;: 529,//库存id
                        &quot;package_id&quot;: 188,//套餐id
                        &quot;num&quot;: 101,//套餐内物料数量
                        &#39;in_storage_num&#39;: 110,//库存数
                        &quot;delete_flag&quot;: 0//是否删除;0:否;1:是;
                    }
                ]
            }
        ],
        &quot;total&quot;: 2 //总条数
    }
}

</code></pre><h3 id="-mr-sun-">套餐内容列表(Mr Sun)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>套餐内容列表</td>
<td>http</td>
<td>post</td>
<td>api/content_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>每页条数</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页码</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>套餐id</td>
<td>string</td>
<td>157</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 1, //套餐内容id
                &quot;materiel_first_class_name&quot;: &quot;美妆用品&quot;,    //物料一级分类名
                &quot;materiel_first_class_no&quot;: &quot;&quot;,  //物料一级分类编号
                &quot;materiel_class_name&quot;: &quot;护肤品套装&quot;, //物料二级分类名
                &quot;materiel_class_no&quot;: &quot;&quot;,    //物料二级分类编号
                &quot;materiel_name&quot;: &quot;艾纯烟酰胺亮肤补水修护套盒&quot;,   //物料名
                &quot;type_name&quot;: &quot;10件套&quot;,    //型号
                &quot;materiel_no&quot;: &quot;&quot;,  //物料编号
                &quot;storage_id&quot;: 48,   //物料当前所在仓库id
                &quot;storage_name&quot;: &quot;B1-9栋&quot;,    //仓库名
                &quot;storage_address&quot;: &quot;B1-9栋&quot;, //仓库地址
                &quot;storage_manage_id&quot;: 535,   //在库id
                &quot;package_id&quot;: 157,  //套餐id
                &quot;num&quot;: 101, // 套餐内物料数量
                &quot;in_storage_num&quot;: 128   //在库数量
                &quot;delete_flag&quot;:1//是否删除;0:否;1:是;
            },
            ......
        ]
        &quot;total&quot;: 6  //
    }
}

</code></pre><h3 id="-mr-sun-">套餐出库(Mr Sun)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>套餐内容列表</td>
<td>http</td>
<td>post</td>
<td>api/package_out</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>套餐主键id</td>
<td>integer</td>
<td>157</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>套餐出库数量</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>remark</td>
<td>是</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>备注</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre></blockquote>
<h3 id="-mr-sun-">新建套餐或套餐内容(Mr Sun)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/add_package_or_content</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>公共请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>类型;0:添加套餐内容;1:添加套餐;</td>
<td>string</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数 <code>type 1</code> 添加套餐</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>package_name</td>
<td>是</td>
<td>否</td>
<td>套餐名</td>
<td>string</td>
<td>保温箱</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数 <code>type 0</code> 添加套餐内容</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>套餐id</td>
<td>integer</td>
<td>53</td>
</tr>
<tr>
<td>storage_manage_id</td>
<td>是</td>
<td>否</td>
<td>库存id</td>
<td>integer</td>
<td>在库id</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>套餐内物料数量</td>
<td>integer</td>
<td>100</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 4 //新增套餐或套餐内容id
    }
}
</code></pre><h3 id="-mr-sun-">删除套餐或套餐内容(Mr Sun)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/del_package_or_content</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>公共请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>类型;0:删除指定套餐内容;1:删除套餐;</td>
<td>string</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>套餐或套餐内容id</td>
<td>integer</td>
<td>53</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-mr-sun-">修改套餐名称或套餐内容(Mr Sun)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/edit_package_or_content</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>公共请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>类型;0:修改指定套餐内容;1:修改套餐;</td>
<td>string</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数 <code>type 1</code> 修改套餐</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>套餐id</td>
<td>integer</td>
<td>53</td>
</tr>
<tr>
<td>package_name</td>
<td>是</td>
<td>否</td>
<td>套餐名称</td>
<td>string</td>
<td>新套餐</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数 <code>type 0</code> 修改指定套餐内容</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>套餐内容id</td>
<td>integer</td>
<td>53</td>
</tr>
<tr>
<td>package_id</td>
<td>是</td>
<td>否</td>
<td>套餐id</td>
<td>integer</td>
<td>110</td>
</tr>
<tr>
<td>storage_manage_id</td>
<td>是</td>
<td>否</td>
<td>库存id</td>
<td>integer</td>
<td>523</td>
</tr>
<tr>
<td>storage_id</td>
<td>是</td>
<td>否</td>
<td>仓库id</td>
<td>integer</td>
<td>110</td>
</tr>
<tr>
<td>storage_name</td>
<td>是</td>
<td>否</td>
<td>仓库名</td>
<td>string</td>
<td>蚌埠仓</td>
</tr>
<tr>
<td>storage_address</td>
<td>是</td>
<td>否</td>
<td>仓库地址</td>
<td>string</td>
<td>BB1-101</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>套餐内物料数量</td>
<td>integer</td>
<td>100</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">添加套餐内容-可用库存物料信息(孙武)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/package_content_select</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>套餐id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>materiel_class_id</td>
<td>否</td>
<td>是</td>
<td>物料所属二级分类id</td>
<td>integer</td>
<td>107</td>
</tr>
<tr>
<td>keyword</td>
<td>否</td>
<td>是</td>
<td>关键词(支持<code>物料名</code>,<code>物料型号</code>,<code>物料编号</code>)</td>
<td>string</td>
<td>电子体温计</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,//当前页
        &quot;data&quot;: [
            {
                &quot;id&quot;: 537,//库存id
                &quot;materiel_class_id&quot;: 9,//物料二级分类id
                &quot;materiel_class_name&quot;: &quot;护肤品套装&quot;,//二级分类名称
                &quot;class_no&quot;: &quot;&quot;,//二级分类编号
                &quot;type_id&quot;: 557,//物料id
                &quot;materiel_name&quot;: &quot;丽肤宝透明质酸补水保湿套盒&quot;,//物料名称
                &quot;type_name&quot;: &quot;5件套&quot;,//物料型号
                &quot;materiel_no&quot;: &quot;&quot;,//物料编号
                &quot;materiel_mean_cost&quot;: &quot;0.00&quot;,//物料成本价
                &quot;storage_id&quot;: 48,//仓库id
                &quot;storage_name&quot;: &quot;B1-9栋&quot;,//所在仓库
                &quot;storage_address&quot;: &quot;B1-9栋&quot;,//所在仓库地址
                &quot;in_storage_num&quot;: 128,//库存数
                &quot;alert_num&quot;: 0,//低库存预警数
                &quot;class_name&quot;: &quot;美妆用品&quot;,//一级分类名称
                &quot;f_class_no&quot;: &quot;&quot;//一级分类编号,
                &quot;content_exist&quot;: 0//是否已添加至当前套餐内
            },
            ......
        ],
        &quot;total&quot;: &quot;10&quot;,//页面大小
    }
}
</code></pre><h3 id="-mr-sun-">指定套餐内容对应的在库信息列表(修改套餐内容用)(Mr Sun)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/package_storage_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>套餐内容id</td>
<td>integer</td>
<td>53</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 531,//库存id
            &quot;storage_id&quot;: 48,//仓库id
            &quot;storage_name&quot;: &quot;B1-9栋&quot;,//仓库名
            &quot;storage_address&quot;: &quot;B1-9栋&quot;,//仓库地址
            &quot;in_storage_num&quot;: 2162//在库数量
        },
        ......
    ]
}
</code></pre><h2 id="-">库存查看</h2>
<h3 id="-">库存查看列表(孙武)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/storage_manage_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>materiel_class_id</td>
<td>否</td>
<td>是</td>
<td>物料所属二级分类id</td>
<td>integer</td>
<td>107</td>
</tr>
<tr>
<td>keyword</td>
<td>否</td>
<td>是</td>
<td>关键词(支持<code>物料名</code>,<code>物料型号</code>,<code>物料编号</code>)</td>
<td>string</td>
<td>电子体温计</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,//当前页
        &quot;data&quot;: [
            {
                &quot;id&quot;: 537,//库存id
                &quot;type_id&quot;: 557,//物料id
                &quot;materiel_name&quot;: &quot;丽肤宝透明质酸补水保湿套盒&quot;,//物料名称
                &quot;type_name&quot;: &quot;5件套&quot;,//物料型号
                &quot;materiel_no&quot;: &quot;&quot;,//物料编号
                &quot;materiel_img&quot;: &#39;&#39;,//物料商品图
                &quot;materiel_mean_cost&quot;: &quot;0.00&quot;,//物料成本价
                &quot;storage_id&quot;: 48,//仓库id
                &quot;storage_name&quot;: &quot;B1-9栋&quot;,//所在仓库
                &quot;storage_address&quot;: &quot;B1-9栋&quot;,//所在仓库地址
                &quot;in_storage_num&quot;: 128,//库存数
                &quot;alert_num&quot;: 0,//低库存预警数
                &quot;f_class_id&quot;: 3,//一级分类id
                &quot;f_class_name&quot;: &quot;美妆用品&quot;,//一级分类名称
                &quot;f_class_no&quot;: &quot;&quot;//一级分类编号
                &quot;s_class_id&quot;: 9,//二级分类id
                &quot;s_class_name&quot;: &quot;护肤品套装&quot;,//二级分类名称
                &quot;s_class_no&quot;: &quot;&quot;,//二级分类编号
                &quot;remark&quot;: &quot;&quot;//商品备注
            },
            ......
        ],
        &quot;total&quot;: &quot;10&quot;,//页面大小
    }
}
</code></pre><h3 id="-">库存查看报表导出(孙武)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>get</td>
<td>api/storage_manage_export</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>token</td>
<td>是</td>
<td>否</td>
<td>token</td>
<td>string</td>
<td>token</td>
</tr>
<tr>
<td>f_class_id</td>
<td>否</td>
<td>是</td>
<td>物料一级分类id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>s_class_id</td>
<td>否</td>
<td>是</td>
<td>物料二级分类id</td>
<td>integer</td>
<td>2</td>
</tr>
<tr>
<td>materiel_name</td>
<td>否</td>
<td>是</td>
<td>物料名称</td>
<td>string</td>
<td>保温箱</td>
</tr>
<tr>
<td>type_name</td>
<td>否</td>
<td>是</td>
<td>物料型号名称</td>
<td>string</td>
<td>6L</td>
</tr>
<tr>
<td>materiel_no</td>
<td>否</td>
<td>是</td>
<td>物料编号</td>
<td>string</td>
<td>CG6D6F</td>
</tr>
<tr>
<td>storage_id</td>
<td>否</td>
<td>是</td>
<td>仓库id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>class_no</td>
<td>否</td>
<td>是</td>
<td>物料一二级分类编号</td>
<td>integer</td>
<td>AG6D6F</td>
</tr>
<tr>
<td>max_mean_cost</td>
<td>否</td>
<td>是</td>
<td>物料成本最大值</td>
<td>float</td>
<td>0.01</td>
</tr>
<tr>
<td>min_mean_cost</td>
<td>否</td>
<td>是</td>
<td>物料成本最小值</td>
<td>float</td>
<td>10</td>
</tr>
<tr>
<td>max_storage_num</td>
<td>否</td>
<td>是</td>
<td>库存数最大值</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>min_storage_num</td>
<td>否</td>
<td>是</td>
<td>库存数最小值</td>
<td>integer</td>
<td>1000</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>无
</code></pre><h3 id="-">新建入库-直接入库(孙武)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>库存查看-新建入库-直接入库</td>
<td>http</td>
<td>post</td>
<td>api/direct_in_storage</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_name</td>
<td>是</td>
<td>否</td>
<td>物料名称</td>
<td>string</td>
<td>保温箱</td>
</tr>
<tr>
<td>type_name</td>
<td>是</td>
<td>否</td>
<td>物料型号名</td>
<td>string</td>
<td>12L</td>
</tr>
<tr>
<td>storage_id</td>
<td>是</td>
<td>否</td>
<td>入库目标仓库id</td>
<td>integer</td>
<td>107</td>
</tr>
<tr>
<td>storage_name</td>
<td>是</td>
<td>否</td>
<td>仓库名</td>
<td>string</td>
<td>B1-10</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>是否设置低库存预警数;0:否;1:是;</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>仓库名</td>
<td>string</td>
<td>B1-10</td>
</tr>
<tr>
<td>alert_num</td>
<td>是</td>
<td>否</td>
<td>低库存预警数</td>
<td>integer</td>
<td>100</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>入库数量</td>
<td>integer</td>
<td>10000</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">设置低库存预警数(孙武)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>库存查看-设置低库存预警数</td>
<td>http</td>
<td>post</td>
<td>api/set_alert_num</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>库存id</td>
<td>integer</td>
<td>529</td>
</tr>
<tr>
<td>alert_num</td>
<td>是</td>
<td>否</td>
<td>物料型号名</td>
<td>integer</td>
<td>100</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre></blockquote>
<h3 id="-">删除(孙武)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>库存查看-删除库存</td>
<td>http</td>
<td>post</td>
<td>api/del_storage_manage</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>库存id</td>
<td>integer</td>
<td>529</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre></blockquote>
<h3 id="-">调拨(孙武)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>库存查看-调拨</td>
<td>http</td>
<td>post</td>
<td>api/allocate</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>库存id</td>
<td>integer</td>
<td>529</td>
</tr>
<tr>
<td>storage_id</td>
<td>是</td>
<td>否</td>
<td>调入仓库id</td>
<td>integer</td>
<td>529</td>
</tr>
<tr>
<td>allocate_num</td>
<td>是</td>
<td>否</td>
<td>调拨数量</td>
<td>integer</td>
<td>100</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>这是调拨</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre></blockquote>
<h3 id="-">出库(孙武)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>库存查看-出库</td>
<td>http</td>
<td>post</td>
<td>api/direct_out_storage</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>库存id</td>
<td>integer</td>
<td>529</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>出库数量</td>
<td>integer</td>
<td>100</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>这是出库</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre></blockquote>
<h2 id="-">操作记录</h2>
<h3 id="-">撤销直接入库</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>操作记录-撤销直接入库</td>
<td>http</td>
<td>post</td>
<td>api/cancel_direct_instorage</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>操作记录主键id</td>
<td>integer</td>
<td>529</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre></blockquote>
<h3 id="-">操作记录列表</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>操作记录-操作记录列表</td>
<td>http</td>
<td>post</td>
<td>api/storage_log_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>出入库及套餐操作记录</code>公共请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>操作日志类型;0:入库;1:出库;2:套餐出库;</td>
<td>integer</td>
<td>0</td>
</tr>
<tr>
<td>keyword</td>
<td>否</td>
<td>否</td>
<td>操作记录主键id</td>
<td>string</td>
<td>牛卫士洗衣凝珠</td>
</tr>
<tr>
<td>start_time</td>
<td>否</td>
<td>否</td>
<td>起始时间</td>
<td>date</td>
<td>牛卫士洗衣凝珠</td>
</tr>
<tr>
<td>end_time</td>
<td>否</td>
<td>否</td>
<td>结束时间</td>
<td>date</td>
<td>牛卫士洗衣凝珠</td>
</tr>
<tr>
<td>status</td>
<td>否</td>
<td>否</td>
<td>撤销状态(0:未撤销;1:已撤销;)</td>
<td>integer</td>
<td>牛卫士洗衣凝珠</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>出入库操作记录</code> 独立请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_class_id</td>
<td>是</td>
<td>否</td>
<td>物料二级分类id，默认为0</td>
<td>integer</td>
<td>0</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>入库操作记录</code>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        ......
        &quot;type&quot;: 0,  //    日志类型;0:入库;1:调拨入库;2:直接入库;
        &quot;in_storage_time&quot;: &quot;2021-11-13 13:14:15&quot;,   //入库时间-`入库`时返回
        &quot;purchase_no&quot;: &quot;20211228135710792267486&quot;,    //采购单号
        &quot;last_storage_name&quot;: &quot;&quot;,    //调入前所在仓库名称
        &quot;last_storage_address&quot;: &quot;&quot;,     //调入前所在仓库地址    
        ......
    }
}
</code></pre><p><code>出库操作记录</code>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        ......
        &quot;type&quot;: 0,  //type;0:出库;1:调出;2:直接出库;
        &quot;out_storage_time&quot;: &quot;2021-11-13 13:14:15&quot;,   //出库时间-`出库`时返回
        &quot;next_storage_name&quot;: &quot;&quot;,    //调入后所在仓库名称    
        &quot;next_storage_address&quot;: &quot;&quot;,     //调入后所在仓库地址    
        ......
    }
}
</code></pre></blockquote>
<blockquote>
<p><code>出入库操作记录</code>公共数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 1,    //日志主键id
                &quot;storage_name&quot;: &quot;蚌埠掌上网络科技有限公司&quot;, //物料当前所在仓库名
                &quot;storage_address&quot;: &quot;B2-6&quot;,  //物料当前所在仓库地址
                &quot;materiel_class_name&quot;: &quot;面膜&quot;,    //物料二级分类名称
                &quot;materiel_class_no&quot;: &quot;&quot;,    //物料二级分类编号
                &quot;materiel_name&quot;: &quot;时尚烟酰胺亮颜保湿面膜&quot;, //物料名称
                &quot;type_name&quot;: &quot;保湿&quot;,  //物料型号
                &quot;materiel_no&quot;: &quot;&quot;,  //物料编号
                &quot;operate_num&quot;: 100, //操作数量
                &quot;last_storage_num&quot;: 0,  //操作前库存数
                &quot;next_storage_num&quot;: 100,    //操作后库存数
                &quot;materiel_mean_cost&quot;: &quot;0.00&quot;,   //物料均价    
                &quot;remark&quot;: &quot;&quot;,   //备注
                &quot;is_cancel&quot;: 0,     //    是否撤销;0:否;1:是;
                &quot;first_class_id&quot;: 3,    //物料一级分类id
                &quot;class_name&quot;: &quot;美妆用品&quot;,   //物料二级分类名称
                &quot;class_no&quot;: &quot;&quot;,  //物料二级分类编号
                &quot;username&quot;: &quot;掌上仓管&quot;,     //操作人账号名
                &quot;nickname&quot;: &quot;施艳梅&quot;   //操作人昵称
            },
            ......
        ],
        &quot;total&quot;: 8 //总条数
    }
}
</code></pre></blockquote>
<blockquote>
<p><code>套餐出库操作记录</code>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 2,    //套餐出库日志主键id
                &quot;package_name&quot;: &quot;+测试2&quot;, //套餐名
                &quot;num&quot;: 1,   //操作数量
                &quot;remark&quot;: &quot;123123321&quot;,  //备注
                &quot;is_cancel&quot;: 0,//是否撤销;0:否;1:是;
                &quot;created_at&quot;: &quot;2021-12-03 15:28:42&quot;,    //出库时间
                &quot;username&quot;: &quot;掌上仓管&quot;, //操作人账户名
                &quot;nickname&quot;: &quot;施艳梅&quot;   //操作人昵称
            }
        ],
        &quot;total&quot;: 2  //总条目数
    }
}
</code></pre></blockquote>
<h3 id="-">操作记录详细</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>操作记录-操作记录详细</td>
<td>http</td>
<td>post</td>
<td>api/log_detail</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>操作日志类型;0:入库;1:出库;2:套餐出库;</td>
<td>integer</td>
<td>0</td>
</tr>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>操作日志id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>入库操作记录</code>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        ......
        &quot;type&quot;: 0,  //操作日志类型;0:入库;1:出库;2:套餐出库;
        &quot;last_storage_name&quot;: &quot;&quot;,    //调入前仓库名称-`入库`时返回
        &quot;last_storage_address&quot;: &quot;&quot;, //调入前仓库-`入库`时返回
        &quot;in_storage_time&quot;: &quot;2021-11-13 13:14:15&quot;,   //入库时间-`入库`时返回
        &quot;purchase_no&quot;: &quot;20211228135710792267486&quot;,    //采购单号
        &quot;all_id_type&quot;: 0,   //单据类型;0:无;1:报溢;2:退货;3:采购;    
        ......
    }
}
</code></pre><p><code>出库操作记录</code>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        ......
        &quot;type&quot;: 0,  //type;0:出库;1:调出;
        &quot;next_storage_name&quot;: &quot;&quot;,    //调出后所在仓库名称-`出库`时返回
        &quot;next_storage_address&quot;: &quot;&quot;, //调出后所在仓库地址-`出库`时返回
         &quot;out_storage_time&quot;: &quot;2021-11-13 13:14:15&quot;,   //出库时间-`出库`时返回
         &quot;all_id_type&quot;: 0,  //单据类型;0:无;1:报损;2:销售;    
        ......
    }
}
</code></pre></blockquote>
<blockquote>
<p><code>出入库操作记录</code>公共数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 1,    //操作日志主键id
        &quot;storage_name&quot;: &quot;蚌埠掌上网络科技有限公司&quot;, //物料当前所在仓库名
        &quot;storage_address&quot;: &quot;B2-6&quot;,  //物料当前所在仓库地址
        &quot;materiel_class_name&quot;: &quot;面膜&quot;,    //物料二级分类名称
        &quot;materiel_class_no&quot;: &quot;&quot;,    //物料二级分类编号
        &quot;materiel_name&quot;: &quot;时尚烟酰胺亮颜保湿面膜&quot;, //物料名称
        &quot;type_name&quot;: &quot;保湿&quot;,  //物料型号
        &quot;materiel_no&quot;: &quot;&quot;,  //物料编号
        &quot;operate_num&quot;: 100, //操作数量
        &quot;last_storage_num&quot;: 0,  //操作前库存数
        &quot;next_storage_num&quot;: 100,    //操作后库存数
        &quot;materiel_mean_cost&quot;: &quot;0.00&quot;,   //物料均价
        &quot;remark&quot;: &quot;&quot;,   //备注
        &quot;is_cancel&quot;: 0, //是否撤销
        &quot;class_name&quot;: &quot;美妆用品&quot;,   //物料一级分类名称
        &quot;class_no&quot;: &quot;&quot;, //物料编号
        &quot;username&quot;: &quot;掌上仓管&quot;, //操作人账号
        &quot;nickname&quot;: &quot;施艳梅&quot;   //操作人昵称
    }
}
</code></pre></blockquote>
<blockquote>
<p><code>套餐出库操作记录</code>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 4,    //日志主键id
        &quot;package_namenum&quot;: &quot;+测试711111&quot;, //套餐名
        &quot;num&quot;: 1,   //套餐出库操作数量
        &quot;remark&quot;: &quot;&quot;,   //备注
        &quot;created_at&quot;: &quot;2021-12-04 14:05:02&quot;,    //出库时间
        &quot;username&quot;: &quot;掌上仓管&quot;, //操作人用户账号
        &quot;nickname&quot;: &quot;施艳梅&quot;,  //操作人用户昵称
        &quot;content&quot;: [
            {
                &quot;id&quot;: 7,    //套餐内容出库记录主键id
                &quot;log_package_id&quot;: 4,    //父级id
                &quot;storage_name&quot;: &quot;B1-9栋&quot;,    //出库仓库名
                &quot;storage_address&quot;: &quot;B1-9栋&quot;, //出库仓库地址
                &quot;first_class_name&quot;: &quot;美妆用品&quot;, //物料商品一级分类名称
                &quot;second_class_name&quot;: &quot;面膜&quot;,  //物料商品二级分类名称
                &quot;materiel_name&quot;: &quot;时尚烟酰胺亮颜保湿面膜&quot;, //物料名
                &quot;type_name&quot;: &quot;保湿&quot;,  //物料型号
                &quot;operate_num&quot;: 100, //操作数量
                &quot;in_storage_num&quot;: 9900  //当前库存
            }
            ......
        ]
    }
}
</code></pre></blockquote>
<h3 id="-">调拨撤销(孙武)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>调拨撤销</td>
<td>http</td>
<td>post</td>
<td>api/cancel_allocate</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>操作记录id</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>撤销类型;0:调入侧撤销;1:调出侧撤销;</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>备注 <code>type</code></p>
</blockquote>
<pre><code>调入侧指在入库操作记录中对调拨进行撤销；
调出侧指在出库操作记录中对调拨进行撤销；

根据调入侧以及调出侧的不同，传入对应的操作记录主键id，即可完成对调拨的撤销；
撤销不会产生新的操作记录，只会在返回的`is_cancel`参数中来标识该调拨已完成撤销操作；
</code></pre><blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">套餐出库撤销(孙武)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>套餐出库撤销</td>
<td>http</td>
<td>post</td>
<td>api/cancel_package_out</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>套餐操作记录id</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">直接出库撤销(孙武)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>直接出库撤销</td>
<td>http</td>
<td>post</td>
<td>api/cancel_direct_outstorage</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>操作记录id</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;success&quot;,
&quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">旧操作记录列表(孙武)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>旧系统操作记录列表</td>
<td>http</td>
<td>post</td>
<td>api/old_log_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>记录类型;0:入库;1:出库;</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>start_time</td>
<td>否</td>
<td>否</td>
<td>起始时间</td>
<td>string</td>
<td>2022-02-10</td>
</tr>
<tr>
<td>end_time</td>
<td>否</td>
<td>否</td>
<td>结束时间</td>
<td>string</td>
<td>2022-02-10</td>
</tr>
<tr>
<td>page_size</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>curr_page</td>
<td>是</td>
<td>否</td>
<td>当前页码</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>入库记录</code>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 2132, //操作记录id
                &quot;type&quot;: 0,  //日志类型;`0,1,6`统称为入库类型;
                &quot;first_class_name&quot;: &quot;22&quot;,   //商品一级分类名称
                &quot;second_class_name&quot;: &quot;测试1&quot;, //商品二级分类名称
                &quot;type_name&quot;: &quot;55&quot;,  //商品型号
                &quot;materiel_name&quot;: &quot;55&quot;,  //商品名称
                &quot;storage_name&quot;: &quot;仓库20021&quot;,  //商品所在仓库名
                &quot;storage_address&quot;: &quot;东海大道2002号&quot;, //商品所在仓库地址
                &quot;is_cancel&quot;: 0, //是否撤销;0:否;1:是;
                &quot;nickname&quot;: &quot;杨杰&quot;,   //昵称
                &quot;account_type&quot;: 0,  //
                &quot;oprate_num&quot;: 1,    //操作数量
                &quot;in_storage_num&quot;: 1,    //商品当前库存
                &quot;oprate_time&quot;: &quot;2021-04-17 14:18:29&quot;    //操作日期
            },
        ],
        ......
        &quot;total&quot;: 24 //总数
    }
}
</code></pre><blockquote>
<p><code>出库记录</code>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 14389,    //操作记录id
                &quot;type&quot;: 2,  //日志类型;`2,3`统称为出库类型;
                &quot;first_class_name&quot;: &quot;小迷糊&quot;,  //商品一级分类名称
                &quot;second_class_name&quot;: &quot;测试4&quot;,//商品二级分类名称
                &quot;type_name&quot;: &quot;hm777&quot;,//商品型号
                &quot;materiel_name&quot;: &quot;小迷糊-猜到&quot;,//商品名称
                &quot;storage_name&quot;: &quot;123123&quot;,//商品所在仓库名
                &quot;storage_address&quot;: &quot;123123&quot;,//商品所在仓库地址
                &quot;is_cancel&quot;: 0,//是否撤销;0:否;1:是;
                &quot;nickname&quot;: &quot;杨杰&quot;,//昵称
                &quot;account_type&quot;: 0,
                &quot;oprate_num&quot;: 40,//操作数量
                &quot;in_storage_num&quot;: 353,//商品当前库存
                &quot;oprate_time&quot;: &quot;2021-09-15 16:41:33&quot;,//操作日期
                &quot;package_name&quot;: &quot;&quot; //套餐名;`不为空时，表示当前记录为套餐出库记录`
            }
        ],
        ...
        &quot;total&quot;: 54 //总数
    }
}
</code></pre><h3 id="-">旧操作记录撤销(孙武)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>旧系统操作记录撤销</td>
<td>http</td>
<td>post</td>
<td>api/cancel_old_log</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>操作记录id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h1 id="-">子账号管理</h1>
<h2 id="-">子账号列表(孙武)</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/user_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,//当前页
        &quot;data&quot;: [
            {
                &quot;id&quot;: 1270,//用户id
                &quot;username&quot;: &quot;掌上出纳&quot;,//账号
                &quot;nickname&quot;: &quot;访客&quot;,//昵称
                &quot;mobile&quot;: &quot;&quot;,//手机号
                &quot;is_active&quot;: 1//是否启用;0:禁用;1:启用
                &quot;updated_at&quot;: null //最近一次登录时间
            },
            {
                &quot;id&quot;: 1270,//用户id
                &quot;username&quot;: &quot;掌上出纳&quot;,//账号
                &quot;nickname&quot;: &quot;访客&quot;,//昵称
                &quot;mobile&quot;: &quot;&quot;,//手机号
                &quot;is_active&quot;: 1//是否启用;0:禁用;1:启用
                &quot;updated_at&quot;: &quot;2021-11-16 09:39:03&quot; //最近一次登录时间
            },
            ......
        ],
        &quot;total&quot;: &quot;10&quot;,//每页条数
    }
}
</code></pre><h2 id="-">启禁用子账号状态(孙武)</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/trans_status</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>子账号用户id</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>状态;1:启用;0:禁用;</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">重置子账号登录密码(孙武)</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/reset_pwd</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>子账号用户id</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">删除子账号(孙武)</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/del_user</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>子账号用户id</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">新建子账号(孙武)</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/add_user</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>username</td>
<td>是</td>
<td>否</td>
<td>账号名</td>
<td>string</td>
<td>仓管</td>
</tr>
<tr>
<td>nickname</td>
<td>是</td>
<td>否</td>
<td>昵称</td>
<td>string</td>
<td>仓管</td>
</tr>
<tr>
<td>mobile</td>
<td>否</td>
<td>否</td>
<td>手机号</td>
<td>string</td>
<td>13333333333</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>状态;1:启用;0:禁用;</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">修改子账号信息(孙武)</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/edit_user_info</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>子账号用户id</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>username</td>
<td>是</td>
<td>否</td>
<td>账号名</td>
<td>string</td>
<td>仓管</td>
</tr>
<tr>
<td>nickname</td>
<td>是</td>
<td>否</td>
<td>昵称</td>
<td>string</td>
<td>仓管</td>
</tr>
<tr>
<td>mobile</td>
<td>是</td>
<td>否</td>
<td>手机号</td>
<td>string</td>
<td>13333333333</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>状态;1:启用;0:禁用;</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>company_name</td>
<td>否</td>
<td>是</td>
<td>公司名称</td>
<td>string</td>
<td>LOL</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">子账号权限设置(孙武)</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/set_user_permission</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>子账号用户id</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>first_module</td>
<td>是</td>
<td>否</td>
<td>一级权限</td>
<td>string</td>
<td>6,21,</td>
</tr>
<tr>
<td>second_module</td>
<td>是</td>
<td>否</td>
<td>二级权限</td>
<td>string</td>
<td>7,8,9,14,27,24,25,22,</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">获取用户权限信息(孙武)</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/get_user_permission</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>子账号用户id</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 6,//一级权限模块id
            &quot;module_name&quot;: &quot;库存管理&quot;,//一级权限模块名称
            &quot;upper_module_id&quot;: 0,//上级权限模块id
            &quot;module_img&quot;: &quot;&quot;,//权限模块图
            &quot;type&quot;: &quot;&quot;,//权限模块类型
            &quot;sort&quot;: 1,//排序
            &quot;second_module&quot;: [
                {
                    &quot;id&quot;: 27,//二级权限模块id
                    &quot;module_name&quot;: &quot;操作记录&quot;,//二级权限模块名称
                    &quot;upper_module_id&quot;: 6,//上级模块id
                    &quot;module_img&quot;: &quot;https://api.storages.top/uploads/default/oprate_history.png&quot;,//权限模块图
                    &quot;type&quot;: &quot;&quot;,//权限模块类型
                    &quot;sort&quot;: 1,//排序
                    &quot;is_enable&quot;: 1//是否开启;0:否;1:是;
                },
                ......
            ],
            &quot;is_enable&quot;: 1//是否开启;0:否;1:是;
        },
        ......
    ]
}
</code></pre><h1 id="-">权限</h1>
<h2 id="-">新建</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>新建权限模块</td>
<td>http</td>
<td>post</td>
<td>api/add_module</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>否</td>
<td>是</td>
<td>模块类型</td>
<td>string</td>
<td>系统设置</td>
</tr>
<tr>
<td>module_name</td>
<td>是</td>
<td>否</td>
<td>权限模块名称</td>
<td>string</td>
<td>系统设置</td>
</tr>
<tr>
<td>module_img</td>
<td>否</td>
<td>是</td>
<td>权限模块图</td>
<td>string</td>
<td>XXXXX.png</td>
</tr>
<tr>
<td>sort</td>
<td>否</td>
<td>是</td>
<td>排序;默认为0</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>upper_module_id</td>
<td>是</td>
<td>否</td>
<td>上级模块id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>备注</p>
<pre><code>    `upper_module_id`为0时，表示当前添加的权限模块为一级；
    非0时，表示当前添加的权限模块为二级，同时非0时应为正确的一级权限模块id
</code></pre></blockquote>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 29
    }
}
</code></pre><h2 id="-">删除</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>新建权限模块</td>
<td>http</td>
<td>post</td>
<td>api/del_module</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>权限模块id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">修改</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>新建权限模块</td>
<td>http</td>
<td>post</td>
<td>api/edit_module</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>公共请求参数(同修改一级权限模块参数)</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>权限模块id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>is_parent</td>
<td>是</td>
<td>否</td>
<td>是否为一级权限模块;0:否;1:是;</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>module_name</td>
<td>是</td>
<td>否</td>
<td>权限模块名称</td>
<td>string</td>
<td>系统设置</td>
</tr>
<tr>
<td>type</td>
<td>否</td>
<td>是</td>
<td>模块类型</td>
<td>string</td>
<td>系统设置</td>
</tr>
<tr>
<td>module_img</td>
<td>否</td>
<td>是</td>
<td>权限模块图</td>
<td>string</td>
<td>XXXXX.png</td>
</tr>
<tr>
<td>sort</td>
<td>否</td>
<td>是</td>
<td>排序;默认为0</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数(修改二级权限模块请求参数)</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>upper_module_id</td>
<td>是</td>
<td>否</td>
<td>上级模块id(不可为0)</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">首页列表</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>首页展示列表</td>
<td>http</td>
<td>post</td>
<td>api/module_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 1,    //一级权限模块id
                &quot;module_name&quot;: &quot;系统设置&quot;,  //一级权限模块名称
                &quot;module_img&quot;: null, //一级权限模块图
                &quot;sort&quot;: 1,  //排序
                &quot;type&quot;: &quot;&quot;, //类型
                &quot;second_module&quot;: [
                    {
                        &quot;id&quot;: 2,    //二级权限模块id
                        &quot;module_name&quot;: &quot;模块管理&quot;,  //二级权限模块名称
                        &quot;module_img&quot;: null, //二级权限模块图
                        &quot;sort&quot;: 1,  //排序
                        &quot;type&quot;: &quot;&quot;, //类型
                        &quot;upper_module_id&quot;: 1    //上级权限模块id
                    }
                    ......
                ]
            }
        ],
        &quot;total&quot;: 6  //总数
    }
}
</code></pre><h2 id="-">一级权限模块列表-下拉</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>一级权限模块下拉列表(添加二级权限模块时使用)</td>
<td>http</td>
<td>post</td>
<td>api/module_select</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 1,    //一级权限模块id
            &quot;module_name&quot;: &quot;系统设置&quot;   //一级权限模块名称
        },
        ......
    ]
}
</code></pre><h1 id="-">角色管理</h1>
<h2 id="-">新建</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>新建角色</td>
<td>http</td>
<td>post</td>
<td>api/role_add</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>role_name</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>string</td>
<td>测试账号</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 6 //新增角色id
    }
}
</code></pre><h2 id="-">删除</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>删除角色</td>
<td>http</td>
<td>post</td>
<td>api/role_del</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>角色id</td>
<td>integer</td>
<td>6</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">修改</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>修改角色</td>
<td>http</td>
<td>post</td>
<td>api/role_edit</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>公共请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>角色id</td>
<td>integer</td>
<td>6</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>修改权限信息和设置角色权限;0:修改角色;1:设置角色权限;</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>修改角色请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>role_name</td>
<td>是</td>
<td>否</td>
<td>角色名</td>
<td>string</td>
<td>测试账号</td>
</tr>
</tbody>
</table>
<blockquote>
<p>设置角色权限请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>first_module</td>
<td>是</td>
<td>否</td>
<td>一级权限模块</td>
<td>string</td>
<td>1,2,3,4</td>
</tr>
<tr>
<td>second_module</td>
<td>是</td>
<td>否</td>
<td>二级权限模块</td>
<td>string</td>
<td>5,6,7,8,9</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">角色列表</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>角色列表</td>
<td>http</td>
<td>post</td>
<td>api/role_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,//当前页码
        &quot;data&quot;: [
            {
                &quot;id&quot;: 5, //角色id
                &quot;role_name&quot;: &quot;超级管理员2&quot; //角色名
            },
            ......
        ],
        &quot;total&quot;: 4 //总数
    }
}
</code></pre><h2 id="-">角色权限模块详细</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>角色权限模块详细</td>
<td>http</td>
<td>post</td>
<td>api/role_detail</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>角色id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 6,    //一级权限模块id
            &quot;module_name&quot;: &quot;库存管理&quot;,  //一级权限模块名称
            &quot;upper_module_id&quot;: 0,   
            &quot;module_img&quot;: &quot;&quot;,   
            &quot;type&quot;: &quot;&quot;, //类型
            &quot;sort&quot;: 1,  //排序
            &quot;second_module&quot;: [
                {
                    &quot;id&quot;: 27,   //二级权限模块id
                    &quot;module_name&quot;: &quot;操作记录&quot;,  //二级权限模块名称
                    &quot;upper_module_id&quot;: 6,   //上级权限模块id
                    &quot;module_img&quot;: &quot;https://api.storages.top/uploads/default/oprate_history.png&quot;,    //
                    &quot;type&quot;: &quot;&quot;, //类型
                    &quot;sort&quot;: 1,  //排序
                    &quot;is_enable&quot;: 0  //是否启用;0:否;1:是;
                },
                ......
            ],
            &quot;is_enable&quot;: 1  //是否启用;0:否;1:是;
        },
        ......
    ]
}
</code></pre><h1 id="-">财务</h1>
<h2 id="-">财务日常功能</h2>
<h3 id="-mr-chen-">报溢报损(Mr Chen)</h3>
<font color=#FF0000 size=4>  备注: 仓库详见：仓库-&gt;我的仓库 商品详见：分类管理-&gt;物料管理 审批人详见：账户-&gt;用户管理  </font>

<h4 id="-">添加</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>添加</td>
<td>http</td>
<td>post</td>
<td>api/overflow_breakage_add</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>goods_info</td>
<td>是</td>
<td>否</td>
<td>商品信息</td>
<td>array</td>
<td>[{&quot;name&quot;:&quot;测试&quot;,&quot;type_name&quot;:&quot;规格&quot;,&quot;num&quot;:2,&quot;image&quot;:&quot;商品图片地址&quot;,&quot;warehouse&quot;:&quot;仓库名称&quot;,&quot;warehouse_id&quot;:1,&quot;remark&quot;:&quot;备注&quot;},{&quot;name&quot;:&quot;测试1&quot;,&quot;type_name&quot;:&quot;规格&quot;,&quot;num&quot;:22,&quot;image&quot;:&quot;商品图片地址&quot;,&quot;warehouse&quot;:&quot;仓库名称1&quot;,&quot;warehouse_id&quot;:2,&quot;remark&quot;:&quot;备注&quot;}]</td>
</tr>
<tr>
<td>proof_image</td>
<td>否</td>
<td>否</td>
<td>凭证图片(多图逗号分隔)</td>
<td>string</td>
<td>test.png,tes4.png</td>
</tr>
<tr>
<td>check_info</td>
<td>是</td>
<td>否</td>
<td>审批人信息</td>
<td>array</td>
<td>[{&quot;id&quot;:1,&quot;name&quot;:&quot;名字&quot;,&quot;mobile&quot;:&quot;手机号&quot;},{&quot;id&quot;:2,&quot;name&quot;:&quot;名字1&quot;,&quot;mobile&quot;:&quot;手机号1&quot;}]</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>类型：0-报溢 1-报损</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>goods_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_type_id</td>
<td>是</td>
<td>否</td>
<td>商品关联id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>商品名称</td>
<td>string</td>
<td>保温箱</td>
</tr>
<tr>
<td>type_name</td>
<td>是</td>
<td>否</td>
<td>型号</td>
<td>string</td>
<td>大保温箱</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>image</td>
<td>是</td>
<td>否</td>
<td>商品图片</td>
<td>string</td>
<td>1.png</td>
</tr>
<tr>
<td>warehouse_id</td>
<td>是</td>
<td>否</td>
<td>仓库id</td>
<td>integer</td>
<td>仓库id</td>
</tr>
<tr>
<td>warehouse</td>
<td>是</td>
<td>否</td>
<td>仓库名称</td>
<td>string</td>
<td>1号仓库</td>
</tr>
<tr>
<td>remark</td>
<td>是</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>丢失</td>
</tr>
<tr>
<td>materiel_no</td>
<td>否</td>
<td>否</td>
<td>编号</td>
<td>string</td>
<td>452342345</td>
</tr>
</tbody>
</table>
<blockquote>
<p>check_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>用户id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>用户昵称(nickname)</td>
<td>string</td>
<td>掌上网络</td>
</tr>
<tr>
<td>mobile</td>
<td>是</td>
<td>否</td>
<td>用户账号名(username)</td>
<td>string</td>
<td>13911557144</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-mr-chen-">退货(Mr Chen)</h3>
<font color=#FF0000 size=4>  备注: 销售单详细见：财务操作记录——&gt;退货单  客户下拉框：账户-&gt;用户管理  其他费用类型名称：账户-&gt;记账分类</font>

<h4 id="-">添加</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>添加退货单</td>
<td>http</td>
<td>post</td>
<td>api/sales_return_add</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>customer_name</td>
<td>是</td>
<td>否</td>
<td>客户姓名</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>goods_info</td>
<td>是</td>
<td>否</td>
<td>商品信息</td>
<td>array</td>
<td>[{&quot;name&quot;:&quot;测试&quot;,&quot;type_name&quot;:&quot;规格&quot;,&quot;price&quot;:&quot;2.30&quot;,&quot;num&quot;:2,&quot;image&quot;:&quot;商品图片地址&quot;,&quot;warehouse&quot;:&quot;仓库名称&quot;,&quot;warehouse_id&quot;:1}]</td>
</tr>
<tr>
<td>discount</td>
<td>否</td>
<td>否</td>
<td>折扣 ：百分比</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>tax_rate</td>
<td>否</td>
<td>否</td>
<td>税率 ：百分比</td>
<td>integer</td>
<td>13</td>
</tr>
<tr>
<td>is_zero_suppression</td>
<td>是</td>
<td>否</td>
<td>是否抹零：0-否 1-是</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>final_money</td>
<td>否</td>
<td>否</td>
<td>实际应收金额（即折扣或抹零后价格）如果是抹零此参数必传</td>
<td>string</td>
<td>10.99</td>
</tr>
<tr>
<td>real_money</td>
<td>否</td>
<td>否</td>
<td>实收金额（实际入账）</td>
<td>string</td>
<td>10.99</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>out_order_no</td>
<td>否</td>
<td>否</td>
<td>外部单号</td>
<td>string</td>
<td>jojdojfo903u40jgi</td>
</tr>
<tr>
<td>refund_date</td>
<td>是</td>
<td>否</td>
<td>退货时间</td>
<td>date</td>
<td>2021-11-01 20:20:20</td>
</tr>
<tr>
<td>proof_image</td>
<td>否</td>
<td>否</td>
<td>凭证图片(多图逗号分隔)</td>
<td>string</td>
<td>./kkkk.png</td>
</tr>
</tbody>
</table>
<blockquote>
<p>goods_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_type_id</td>
<td>是</td>
<td>否</td>
<td>商品关联id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>商品名称</td>
<td>string</td>
<td>笔记本</td>
</tr>
<tr>
<td>type_name</td>
<td>是</td>
<td>否</td>
<td>规格</td>
<td>string</td>
<td>Mac</td>
</tr>
<tr>
<td>materiel_no</td>
<td>否</td>
<td>否</td>
<td>编号</td>
<td>string</td>
<td>452342345</td>
</tr>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>价格</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>image</td>
<td>否</td>
<td>否</td>
<td>商品图片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>warehouse</td>
<td>是</td>
<td>否</td>
<td>仓库名称</td>
<td>string</td>
<td>一仓</td>
</tr>
<tr>
<td>warehouse_id</td>
<td>是</td>
<td>否</td>
<td>仓库主键id</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: 32      退货单主键id
}
</code></pre><h4 id="-">编辑</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑退货单</td>
<td>http</td>
<td>post</td>
<td>api/sales_return_edit</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>退货主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>customer_name</td>
<td>否</td>
<td>否</td>
<td>客户姓名</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>goods_info</td>
<td>否</td>
<td>否</td>
<td>商品信息</td>
<td>array</td>
<td></td>
</tr>
<tr>
<td>discount</td>
<td>否</td>
<td>否</td>
<td>折扣 ：百分比</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>tax_rate</td>
<td>否</td>
<td>否</td>
<td>税率 ：百分比</td>
<td>integer</td>
<td>13</td>
</tr>
<tr>
<td>is_zero_suppression</td>
<td>是</td>
<td>否</td>
<td>是否抹零：0-否 1-是</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>final_money</td>
<td>否</td>
<td>否</td>
<td>实际应收金额（即折扣或抹零后价格）如果是抹零此参数必传</td>
<td>string</td>
<td>10.99</td>
</tr>
<tr>
<td>real_money</td>
<td>否</td>
<td>否</td>
<td>实收金额（实际入账）</td>
<td>string</td>
<td>10.99</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>out_order_no</td>
<td>否</td>
<td>否</td>
<td>外部单号</td>
<td>string</td>
<td>jojdojfo903u40jgi</td>
</tr>
<tr>
<td>refund_date</td>
<td>否</td>
<td>否</td>
<td>退货时间</td>
<td>date</td>
<td>2021-11-01 20:20:20</td>
</tr>
<tr>
<td>proof_image</td>
<td>否</td>
<td>否</td>
<td>凭证图片(多图逗号分隔)</td>
<td>string</td>
<td>./kkkk.png</td>
</tr>
</tbody>
</table>
<blockquote>
<p>goods_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_type_id</td>
<td>是</td>
<td>否</td>
<td>商品关联id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>商品名称</td>
<td>string</td>
<td>笔记本</td>
</tr>
<tr>
<td>type_name</td>
<td>是</td>
<td>否</td>
<td>规格</td>
<td>string</td>
<td>Mac</td>
</tr>
<tr>
<td>materiel_no</td>
<td>否</td>
<td>否</td>
<td>编号</td>
<td>string</td>
<td>452342345</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>price</td>
<td>否</td>
<td>否</td>
<td>价格</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>image</td>
<td>否</td>
<td>否</td>
<td>商品图片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>warehouse</td>
<td>是</td>
<td>否</td>
<td>仓库名称</td>
<td>string</td>
<td>一仓</td>
</tr>
<tr>
<td>warehouse_id</td>
<td>是</td>
<td>否</td>
<td>仓库主键id</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">删除</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>删除退货单</td>
<td>http</td>
<td>post</td>
<td>api/sales_return_del</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>销售主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">收款</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>收款</td>
<td>http</td>
<td>post</td>
<td>api/sales_return_get_money</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>return_id</td>
<td>是</td>
<td>否</td>
<td>退货单主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>money</td>
<td>是</td>
<td>否</td>
<td>收款金额</td>
<td>string</td>
<td>1</td>
</tr>
<tr>
<td>collection_time</td>
<td>是</td>
<td>否</td>
<td>收款时间</td>
<td>date</td>
<td>2021-10-09</td>
</tr>
<tr>
<td>collection_account</td>
<td>是</td>
<td>否</td>
<td>收款账号</td>
<td>string</td>
<td>宏迈科技</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>收款状态：1-全部 2-部分</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">入库</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>销售单撤销</td>
<td>http</td>
<td>post</td>
<td>api/sales_return_in</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>退货单主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>出入库状态：0-部分 1-全部</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>goods_info</td>
<td>否（全部时不传）</td>
<td>否</td>
<td>商品信息</td>
<td>array</td>
<td></td>
</tr>
<tr>
<td>in_storage_time</td>
<td>是</td>
<td>否</td>
<td>入库时间</td>
<td>date</td>
<td>2021-09-09 20:20:11</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>备注</td>
</tr>
</tbody>
</table>
<blockquote>
<p>goods_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_type_id</td>
<td>是</td>
<td>否</td>
<td>商品关联id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>商品名称</td>
<td>string</td>
<td>笔记本</td>
</tr>
<tr>
<td>type_name</td>
<td>是</td>
<td>否</td>
<td>规格</td>
<td>string</td>
<td>Mac</td>
</tr>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>价格</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>image</td>
<td>否</td>
<td>否</td>
<td>商品图片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>warehouse</td>
<td>是</td>
<td>否</td>
<td>仓库名称</td>
<td>string</td>
<td>一仓</td>
</tr>
<tr>
<td>warehouse_id</td>
<td>是</td>
<td>否</td>
<td>仓库主键id</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-mr-chen-">销售(Mr Chen)</h3>
<font color=#FF0000 size=4>  备注: 销售单详细见：财务操作记录——&gt;销售单  客户下拉框：账户-&gt;用户管理  其他费用类型名称：账户-&gt;记账分类</font>

<h4 id="-">添加</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>添加销售单</td>
<td>http</td>
<td>post</td>
<td>api/sell_add</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>customer_name</td>
<td>是</td>
<td>否</td>
<td>客户姓名</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>goods_info</td>
<td>是</td>
<td>否</td>
<td>商品信息</td>
<td>array</td>
<td>[{&quot;name&quot;:&quot;测试&quot;,&quot;type_name&quot;:&quot;规格&quot;,&quot;price&quot;:&quot;2.30&quot;,&quot;num&quot;:2,&quot;image&quot;:&quot;商品图片地址&quot;,&quot;warehouse&quot;:&quot;仓库名称&quot;,&quot;warehouse_id&quot;:1}]</td>
</tr>
<tr>
<td>discount</td>
<td>否</td>
<td>否</td>
<td>折扣 ：百分比</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>tax_rate</td>
<td>否</td>
<td>否</td>
<td>税率 ：百分比</td>
<td>integer</td>
<td>13</td>
</tr>
<tr>
<td>is_zero_suppression</td>
<td>是</td>
<td>否</td>
<td>是否抹零：0-否 1-是</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>final_money</td>
<td>否</td>
<td>否</td>
<td>实际应收金额（即折扣或抹零后价格）如果是抹零此参数必传</td>
<td>string</td>
<td>10.99</td>
</tr>
<tr>
<td>deliver_goods_type</td>
<td>否</td>
<td>否</td>
<td>发货方式：1-自提 2-代发 3-送货</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>transport_type</td>
<td>否</td>
<td>否</td>
<td>运输方式：1-空运 2-海运 3-铁路 4-公路</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>consignee</td>
<td>否</td>
<td>否</td>
<td>收货人</td>
<td>string</td>
<td>孙先生</td>
</tr>
<tr>
<td>phone</td>
<td>否</td>
<td>否</td>
<td>联系方式</td>
<td>string</td>
<td>18977687686</td>
</tr>
<tr>
<td>address</td>
<td>否</td>
<td>否</td>
<td>收货地址</td>
<td>string</td>
<td>大学城</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>out_order_no</td>
<td>否</td>
<td>否</td>
<td>外部单号</td>
<td>string</td>
<td>jojdojfo903u40jgi</td>
</tr>
<tr>
<td>sell_date</td>
<td>是</td>
<td>否</td>
<td>销售时间</td>
<td>date</td>
<td>2021-11-01 20:20:20</td>
</tr>
<tr>
<td>is_draft</td>
<td>是</td>
<td>否</td>
<td>是否草稿：1-是 0-否</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>proof_image</td>
<td>否</td>
<td>否</td>
<td>凭证图片(多图逗号分隔)</td>
<td>string</td>
<td>./kkkk.png</td>
</tr>
<tr>
<td>real_money</td>
<td>否</td>
<td>否</td>
<td>实收金额（实际入账）</td>
<td>string</td>
<td>10.99</td>
</tr>
<tr>
<td>source</td>
<td>否</td>
<td>否</td>
<td>订单来源</td>
<td>integer</td>
<td>订单来源:0-未知 1-安卓 2-ios 3-pc 4-微信小程序 5-抖音小程序</td>
</tr>
</tbody>
</table>
<blockquote>
<p>goods_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_type_id</td>
<td>是</td>
<td>否</td>
<td>商品关联id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>商品名称</td>
<td>string</td>
<td>笔记本</td>
</tr>
<tr>
<td>type_name</td>
<td>是</td>
<td>否</td>
<td>规格</td>
<td>string</td>
<td>Mac</td>
</tr>
<tr>
<td>materiel_no</td>
<td>否</td>
<td>否</td>
<td>编号</td>
<td>string</td>
<td>452342345</td>
</tr>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>价格</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>image</td>
<td>否</td>
<td>否</td>
<td>商品图片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>warehouse</td>
<td>是</td>
<td>否</td>
<td>仓库名称</td>
<td>string</td>
<td>一仓</td>
</tr>
<tr>
<td>warehouse_id</td>
<td>是</td>
<td>否</td>
<td>仓库主键id</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: 32      销售单主键id
}
</code></pre><h4 id="-">编辑</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑销售单</td>
<td>http</td>
<td>post</td>
<td>api/sell_edit</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>销售主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>customer_name</td>
<td>否</td>
<td>否</td>
<td>客户姓名</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>goods_info</td>
<td>否</td>
<td>否</td>
<td>商品信息</td>
<td>array</td>
<td>[{&quot;name&quot;:&quot;测试&quot;,&quot;type_name&quot;:&quot;规格&quot;,&quot;price&quot;:&quot;2.30&quot;,&quot;num&quot;:2,&quot;image&quot;:&quot;商品图片地址&quot;,&quot;warehouse&quot;:&quot;仓库名称&quot;,&quot;warehouse_id&quot;:1,&quot;piece&quot;:2}]</td>
</tr>
<tr>
<td>discount</td>
<td>否</td>
<td>否</td>
<td>折扣 ：百分比</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>tax_rate</td>
<td>否</td>
<td>否</td>
<td>税率 ：百分比</td>
<td>integer</td>
<td>13</td>
</tr>
<tr>
<td>is_zero_suppression</td>
<td>是</td>
<td>否</td>
<td>是否抹零：0-否 1-是</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>final_money</td>
<td>否</td>
<td>否</td>
<td>实际应收金额（即折扣或抹零后价格）如果是抹零此参数必传</td>
<td>string</td>
<td>10.99</td>
</tr>
<tr>
<td>deliver_goods_type</td>
<td>否</td>
<td>否</td>
<td>发货方式：1-自提 2-代发 3-送货</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>transport_type</td>
<td>否</td>
<td>否</td>
<td>运输方式：1-空运 2-海运 3-铁路 4-公路</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>consignee</td>
<td>否</td>
<td>否</td>
<td>收货人</td>
<td>string</td>
<td>孙先生</td>
</tr>
<tr>
<td>phone</td>
<td>否</td>
<td>否</td>
<td>联系方式</td>
<td>string</td>
<td>18977687686</td>
</tr>
<tr>
<td>address</td>
<td>否</td>
<td>否</td>
<td>收货地址</td>
<td>string</td>
<td>大学城</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>out_order_no</td>
<td>否</td>
<td>否</td>
<td>外部单号</td>
<td>string</td>
<td>jojdojfo903u40jgi</td>
</tr>
<tr>
<td>sell_date</td>
<td>是</td>
<td>否</td>
<td>销售时间</td>
<td>date</td>
<td>2021-11-01 20:20:20</td>
</tr>
<tr>
<td>is_draft</td>
<td>是</td>
<td>否</td>
<td>是否草稿：1-是 0-否</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>proof_image</td>
<td>否</td>
<td>否</td>
<td>凭证图片(多图逗号分隔)</td>
<td>string</td>
<td>./kkkk.png</td>
</tr>
<tr>
<td>real_money</td>
<td>否</td>
<td>否</td>
<td>实收金额（实际入账）</td>
<td>string</td>
<td>22.90</td>
</tr>
<tr>
<td>logistics_company</td>
<td>否</td>
<td>否</td>
<td>物流公司</td>
<td>string</td>
<td>中通</td>
</tr>
<tr>
<td>logistics_order_no</td>
<td>否</td>
<td>否</td>
<td>物流单号</td>
<td>string</td>
<td>asdfadsu493f9f</td>
</tr>
<tr>
<td>order_time</td>
<td>否</td>
<td>否</td>
<td>下单时间</td>
<td>date</td>
<td>2021-11-01 20:20:20</td>
</tr>
<tr>
<td>deliver_time</td>
<td>否</td>
<td>否</td>
<td>发货时间</td>
<td>date</td>
<td>2021-11-01 20:20:20</td>
</tr>
<tr>
<td>deliver_person</td>
<td>否</td>
<td>否</td>
<td>发货人</td>
<td>string</td>
<td>孙总</td>
</tr>
<tr>
<td>deliver_phone</td>
<td>否</td>
<td>否</td>
<td>发货人联系方式</td>
<td>string</td>
<td>14289877837</td>
</tr>
<tr>
<td>deliver_addr</td>
<td>否</td>
<td>否</td>
<td>发货地址</td>
<td>string</td>
<td>东海大道</td>
</tr>
<tr>
<td>source</td>
<td>否</td>
<td>否</td>
<td>订单来源</td>
<td>integer</td>
<td>订单来源:0-未知 1-安卓 2-ios 3-pc 4-微信小程序 5-抖音小程序</td>
</tr>
<tr>
<td>total_piece</td>
<td>否</td>
<td>否</td>
<td>商品总件数</td>
<td>integer</td>
<td>11</td>
</tr>
<tr>
<td>driver</td>
<td>否</td>
<td>否</td>
<td>司机信息</td>
<td>obj</td>
<td>{&quot;plate_number&quot;:&quot;皖*98098&quot;,&quot;name&quot;:&quot;测试&quot;,&quot;phone&quot;:&quot;18966558879&quot;,&quot;logistics_company&quot;:&quot;&quot;,&quot;remark&quot;:&quot;&quot;,&quot;plate_image&quot;:&quot;k.png&quot;,&quot;id_card_image&quot;:&quot;ks.png&quot;,&quot;driving_licence&quot;:&quot;kks.png&quot;}</td>
</tr>
</tbody>
</table>
<blockquote>
<p>goods_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_type_id</td>
<td>是</td>
<td>否</td>
<td>商品关联id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>商品名称</td>
<td>string</td>
<td>笔记本</td>
</tr>
<tr>
<td>type_name</td>
<td>是</td>
<td>否</td>
<td>规格</td>
<td>string</td>
<td>Mac</td>
</tr>
<tr>
<td>materiel_no</td>
<td>否</td>
<td>否</td>
<td>编号</td>
<td>string</td>
<td>452342345</td>
</tr>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>价格</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>image</td>
<td>否</td>
<td>否</td>
<td>商品图片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>warehouse</td>
<td>是</td>
<td>否</td>
<td>仓库名称</td>
<td>string</td>
<td>一仓</td>
</tr>
<tr>
<td>warehouse_id</td>
<td>是</td>
<td>否</td>
<td>仓库主键id</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>piece</td>
<td>否</td>
<td>否</td>
<td>件数</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>driver</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>plate_number</td>
<td>是</td>
<td>否</td>
<td>车牌</td>
<td>string</td>
<td>皖A*98098</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>司机姓名</td>
<td>string</td>
<td>孙先生</td>
</tr>
<tr>
<td>phone</td>
<td>是</td>
<td>否</td>
<td>司机电话</td>
<td>string</td>
<td>18966558875</td>
</tr>
<tr>
<td>logistics_company</td>
<td>否</td>
<td>否</td>
<td>物流公司</td>
<td>string</td>
<td>企业</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>一仓</td>
</tr>
<tr>
<td>plate_image</td>
<td>否</td>
<td>否</td>
<td>车牌照片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>id_card_image</td>
<td>否</td>
<td>否</td>
<td>身份证照片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>driving_licence</td>
<td>否</td>
<td>否</td>
<td>驾驶证照片</td>
<td>string</td>
<td>kk.png</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">删除</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>删除销售订单</td>
<td>http</td>
<td>post</td>
<td>api/sell_del</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>销售主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">收款</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>收款</td>
<td>http</td>
<td>post</td>
<td>api/sell_get_money</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>sell_id</td>
<td>是</td>
<td>否</td>
<td>销售主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>money</td>
<td>是</td>
<td>否</td>
<td>收款金额</td>
<td>string</td>
<td>1</td>
</tr>
<tr>
<td>collection_time</td>
<td>是</td>
<td>否</td>
<td>收款时间</td>
<td>date</td>
<td>2021-10-09</td>
</tr>
<tr>
<td>collection_account</td>
<td>是</td>
<td>否</td>
<td>收款账号</td>
<td>string</td>
<td>宏迈科技</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>收款状态：1-全部 2-部分</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">出库</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>销售单撤销</td>
<td>http</td>
<td>post</td>
<td>api/sell_out</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>销售单主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>出入库状态：0-部分 1-全部</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>goods_info</td>
<td>否（全部是不传）</td>
<td>否</td>
<td>商品信息</td>
<td>array</td>
<td></td>
</tr>
<tr>
<td>in_storage_time</td>
<td>是</td>
<td>否</td>
<td>出库时间</td>
<td>date</td>
<td>2021-09-09 20:20:11</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>备注</td>
</tr>
</tbody>
</table>
<blockquote>
<p>goods_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_type_id</td>
<td>是</td>
<td>否</td>
<td>商品关联id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>商品名称</td>
<td>string</td>
<td>笔记本</td>
</tr>
<tr>
<td>type_name</td>
<td>是</td>
<td>否</td>
<td>规格</td>
<td>string</td>
<td>Mac</td>
</tr>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>价格</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>image</td>
<td>否</td>
<td>否</td>
<td>商品图片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>warehouse</td>
<td>是</td>
<td>否</td>
<td>仓库名称</td>
<td>string</td>
<td>一仓</td>
</tr>
<tr>
<td>warehouse_id</td>
<td>是</td>
<td>否</td>
<td>仓库主键id</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">绑定司机(添加编辑)</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>绑定司机(添加编辑)</td>
<td>http</td>
<td>post</td>
<td>api/sell_bind_driver</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>sell_id</td>
<td>是</td>
<td>否</td>
<td>销售主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>plate_number</td>
<td>是</td>
<td>否</td>
<td>车牌</td>
<td>string</td>
<td>皖A*98098</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>司机姓名</td>
<td>string</td>
<td>孙先生</td>
</tr>
<tr>
<td>phone</td>
<td>是</td>
<td>否</td>
<td>司机电话</td>
<td>string</td>
<td>18966558875</td>
</tr>
<tr>
<td>logistics_company</td>
<td>否</td>
<td>否</td>
<td>物流公司</td>
<td>string</td>
<td>企业</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>一仓</td>
</tr>
<tr>
<td>plate_image</td>
<td>否</td>
<td>否</td>
<td>车牌照片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>id_card_image</td>
<td>否</td>
<td>否</td>
<td>身份证照片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>driving_licence</td>
<td>否</td>
<td>否</td>
<td>驾驶证照片</td>
<td>string</td>
<td>kk.png</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">查看驾驶员</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>查看驾驶员</td>
<td>http</td>
<td>post</td>
<td>api/sell_find_driver</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>sell_id</td>
<td>是</td>
<td>否</td>
<td>销售主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 5,    司机主键id
        &quot;plate_number&quot;: &quot;皖A*98098&quot;,    车牌   
        &quot;name&quot;: &quot;陈&quot;,                   司机姓名
        &quot;phone&quot;: &quot;18966558879&quot;,         提货司机电话
        &quot;logistics_company&quot;: &quot;&quot;,        物流公司
        &quot;remark&quot;: &quot;&quot;,                   备注
        &quot;plate_image&quot;: &quot;k.png&quot;,         车牌照片
        &quot;id_card_image&quot;: &quot;ks.png&quot;,      身份证照片
        &quot;driving_licence&quot;: &quot;kks.png&quot;,   驾驶证照片
        &quot;sell_id&quot;: 8,                   销售单主键id
        &quot;created_at&quot;: &quot;2021-11-02 10:02:50&quot;,
        &quot;updated_at&quot;: null
    }
}
</code></pre><h4 id="-">其他费用添加</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>其他费用添加</td>
<td>http</td>
<td>post</td>
<td>api/sell_other_charges</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>sell_id</td>
<td>是</td>
<td>否</td>
<td>销售主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>money</td>
<td>是</td>
<td>否</td>
<td>其他费用金额</td>
<td>string</td>
<td>55</td>
</tr>
<tr>
<td>other_type_name</td>
<td>是</td>
<td>否</td>
<td>其他费用类型名称</td>
<td>string</td>
<td>运费</td>
</tr>
<tr>
<td>other_remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>备注</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">其他费用编辑</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>其他费用编辑</td>
<td>http</td>
<td>post</td>
<td>api/sell_other_charges_edit</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>其他费用主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>money</td>
<td>是</td>
<td>否</td>
<td>其他费用金额</td>
<td>string</td>
<td>55</td>
</tr>
<tr>
<td>other_type_name</td>
<td>否</td>
<td>否</td>
<td>其他费用类型名称</td>
<td>string</td>
<td>运费</td>
</tr>
<tr>
<td>other_remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>备注</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">其他费用列表</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>其他费用列表</td>
<td>http</td>
<td>post</td>
<td>api/sell_other_charges_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>sell_id</td>
<td>是</td>
<td>否</td>
<td>销售主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 3,
            &quot;main_id&quot;: 7,
            &quot;money&quot;: &quot;8.00&quot;,        其他费用金额
            &quot;other_type_name&quot;: &quot;运费&quot;,  其他费用类型
            &quot;other_remark&quot;: &quot;测试&quot;,     备注
            &quot;sell_id&quot;: 8,
            &quot;created_at&quot;: null,
            &quot;updated_at&quot;: &quot;2021-11-02 15:34:51&quot;
        }
    ]
}
</code></pre><h3 id="-mr-sun-">采购(Mr Sun)</h3>
<h4 id="-">新建采购</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>采购-新建采购单</td>
<td>http</td>
<td>post</td>
<td>api/add_materiel</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_content</td>
<td>是</td>
<td>否</td>
<td>销售主键id</td>
<td>json数组</td>
<td></td>
</tr>
<tr>
<td>supplier_customer_id</td>
<td>是</td>
<td>否</td>
<td>供应商id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>t4est</td>
</tr>
<tr>
<td>purchase_time</td>
<td>是</td>
<td>否</td>
<td>采购日期</td>
<td>string</td>
<td>2021-11-23 15:53:26</td>
</tr>
<tr>
<td>tax_rate</td>
<td>是</td>
<td>否</td>
<td>税率</td>
<td>integer</td>
<td>0</td>
</tr>
<tr>
<td>preferential_way</td>
<td>是</td>
<td>否</td>
<td>优惠方式;0:无;1:修改价格;2:折扣优惠;</td>
<td>integer</td>
<td>0</td>
</tr>
<tr>
<td>preferential_money</td>
<td>是</td>
<td>否</td>
<td>优惠方式值为非0时,对应的修改价格和折扣优惠后金额</td>
<td>float</td>
<td>0</td>
</tr>
<tr>
<td>out_order_no</td>
<td>否</td>
<td>否</td>
<td>外部单号</td>
<td>string</td>
<td>1234561321</td>
</tr>
<tr>
<td>proof_image</td>
<td>否</td>
<td>否</td>
<td>采购凭证图</td>
<td>string</td>
<td>多图以逗号拼接的形式入参</td>
</tr>
<tr>
<td>source</td>
<td>是</td>
<td>否</td>
<td>订单来源(1-安卓 2-ios 3-pc 4-微信小程序 5-抖音小程序)</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>备注</p>
<pre><code>`preferential_way`为1时，`preferential_money`传入修改后的价格；
`preferential_way`为2时，`preferential_money`传入折扣比例；
</code></pre></blockquote>
<blockquote>
<p><code>materiel_content</code>参数示例</p>
</blockquote>
<pre><code>[{&quot;type_id&quot;:548,&quot;materiel_name&quot;:&quot;保温箱&quot;,&quot;type_name&quot;:&quot;35L&quot;,&quot;materiel_img&quot;:&quot;&quot;,&quot;materiel_no&quot;:&quot;13246578&quot;,&quot;materiel_class_id&quot;:7,&quot;materiel_class_no&quot;:&quot;1234&quot;,&quot;materiel_class_name&quot;:&quot;防疫器械&quot;,&quot;storage_id&quot;:3,&quot;unit_price&quot;:10.5,&quot;num&quot;:100}]
</code></pre><blockquote>
<p><code>materiel_content</code>参数说明</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type_id</td>
<td>是</td>
<td>否</td>
<td>物料id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>materiel_name</td>
<td>是</td>
<td>否</td>
<td>物料名称</td>
<td>string</td>
<td>保温箱</td>
</tr>
<tr>
<td>type_name</td>
<td>是</td>
<td>否</td>
<td>物料型号</td>
<td>string</td>
<td>保温箱</td>
</tr>
<tr>
<td>materiel_img</td>
<td>否</td>
<td>否</td>
<td>物料图</td>
<td>string</td>
<td>xxx.png</td>
</tr>
<tr>
<td>materiel_no</td>
<td>否</td>
<td>否</td>
<td>物料型号</td>
<td>string</td>
<td>1345678</td>
</tr>
<tr>
<td>storage_id</td>
<td>是</td>
<td>否</td>
<td>入库目标仓库id</td>
<td>integer</td>
<td>7</td>
</tr>
<tr>
<td>unit_price</td>
<td>是</td>
<td>否</td>
<td>单价</td>
<td>float</td>
<td>10.5</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>采购数量;最小为1</td>
<td>integer</td>
<td>1000</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 12
    }
}
</code></pre><h4 id="-">修改采购</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>采购-新建采购单</td>
<td>http</td>
<td>post</td>
<td>api/edit_materiel</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>采购单id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>supplier_customer_id</td>
<td>是</td>
<td>否</td>
<td>供应商id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>materiel_content</td>
<td>是</td>
<td>否</td>
<td>采购单内容</td>
<td>json数组</td>
<td></td>
</tr>
<tr>
<td>supplier_customer_id</td>
<td>是</td>
<td>否</td>
<td>供应商id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>t4est</td>
</tr>
<tr>
<td>purchase_time</td>
<td>是</td>
<td>否</td>
<td>采购日期</td>
<td>string</td>
<td>2021-11-23 15:53:26</td>
</tr>
<tr>
<td>tax_rate</td>
<td>是</td>
<td>否</td>
<td>税率</td>
<td>integer</td>
<td>0</td>
</tr>
<tr>
<td>fact_money</td>
<td>否</td>
<td>否</td>
<td>实付金额</td>
<td>float</td>
<td>0</td>
</tr>
<tr>
<td>preferential_way</td>
<td>是</td>
<td>否</td>
<td>优惠方式;0:无;1:修改价格;2:折扣优惠;</td>
<td>integer</td>
<td>0</td>
</tr>
<tr>
<td>preferential_money</td>
<td>是</td>
<td>否</td>
<td>优惠方式值为非0时,对应的修改价格和折扣优惠后金额</td>
<td>float</td>
<td>0</td>
</tr>
<tr>
<td>out_order_no</td>
<td>否</td>
<td>否</td>
<td>外部单号</td>
<td>string</td>
<td>1234561321</td>
</tr>
<tr>
<td>proof_image</td>
<td>否</td>
<td>否</td>
<td>采购凭证图</td>
<td>string</td>
<td>多图以逗号拼接的形式入参</td>
</tr>
<tr>
<td>shipping_method</td>
<td>否</td>
<td>否</td>
<td>外部单号</td>
<td>int</td>
<td>发货方式：1-自提 2-代发 3-送货</td>
</tr>
<tr>
<td>transport_type</td>
<td>否</td>
<td>否</td>
<td>外部单号</td>
<td>int</td>
<td>运输方式：1-空运 2-海运 3-铁路 4-公路</td>
</tr>
<tr>
<td>logistics_company</td>
<td>否</td>
<td>否</td>
<td>物流公司</td>
<td>string</td>
<td>快快递</td>
</tr>
<tr>
<td>logistics_order_no</td>
<td>否</td>
<td>否</td>
<td>物流单号</td>
<td>string</td>
<td>1234561321</td>
</tr>
<tr>
<td>deliver_person</td>
<td>否</td>
<td>否</td>
<td>发货人</td>
<td>string</td>
<td>biubiu</td>
</tr>
<tr>
<td>deliver_phone</td>
<td>否</td>
<td>否</td>
<td>发货人联系方式</td>
<td>string</td>
<td>15267902931</td>
</tr>
<tr>
<td>deliver_address</td>
<td>否</td>
<td>否</td>
<td>发货地址</td>
<td>string</td>
<td>安徽省蚌埠市东海大道888</td>
</tr>
<tr>
<td>source</td>
<td>否</td>
<td>否</td>
<td>订单来源</td>
<td>string</td>
<td>淘宝</td>
</tr>
<tr>
<td>pay_status</td>
<td>否</td>
<td>否</td>
<td>付款状态：0-待付款 1-部分付款 2-全部付款</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>in_storage_status</td>
<td>否</td>
<td>否</td>
<td>入库状态:0:待入库;1:部分入库;2:全部入库;</td>
<td>integer</td>
<td>2</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>materiel_content</code>参数示例</p>
</blockquote>
<pre><code>[{&quot;type_id&quot;:548,&quot;materiel_name&quot;:&quot;保温箱&quot;,&quot;type_name&quot;:&quot;35L&quot;,&quot;materiel_img&quot;:&quot;&quot;,&quot;materiel_no&quot;:&quot;13246578&quot;,&quot;materiel_class_id&quot;:7,&quot;materiel_class_no&quot;:&quot;1234&quot;,&quot;materiel_class_name&quot;:&quot;防疫器械&quot;,&quot;storage_id&quot;:3,&quot;unit_price&quot;:10.5,&quot;num&quot;:100}]
</code></pre><blockquote>
<p><code>materiel_content</code>参数说明</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type_id</td>
<td>是</td>
<td>否</td>
<td>物料id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>materiel_name</td>
<td>是</td>
<td>否</td>
<td>物料名称</td>
<td>string</td>
<td>保温箱</td>
</tr>
<tr>
<td>type_name</td>
<td>是</td>
<td>否</td>
<td>物料型号</td>
<td>string</td>
<td>保温箱</td>
</tr>
<tr>
<td>materiel_img</td>
<td>否</td>
<td>否</td>
<td>物料图</td>
<td>string</td>
<td>xxx.png</td>
</tr>
<tr>
<td>materiel_no</td>
<td>否</td>
<td>否</td>
<td>物料型号</td>
<td>string</td>
<td>1345678</td>
</tr>
<tr>
<td>storage_id</td>
<td>是</td>
<td>否</td>
<td>入库目标仓库id</td>
<td>integer</td>
<td>7</td>
</tr>
<tr>
<td>unit_price</td>
<td>是</td>
<td>否</td>
<td>单价</td>
<td>float</td>
<td>10.5</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>采购数量;最小为1</td>
<td>integer</td>
<td>1000</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">添加其他费用</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>采购-添加其他费用</td>
<td>http</td>
<td>post</td>
<td>api/add_materiel_other_charges</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_id</td>
<td>是</td>
<td>否</td>
<td>采购主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>money</td>
<td>是</td>
<td>否</td>
<td>其他费用金额</td>
<td>string</td>
<td>55</td>
</tr>
<tr>
<td>other_type_name</td>
<td>是</td>
<td>否</td>
<td>其他费用类型名称</td>
<td>string</td>
<td>运费</td>
</tr>
<tr>
<td>other_remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>备注</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">编辑其他费用</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>采购-其他费用编辑</td>
<td>http</td>
<td>post</td>
<td>api/edit_materiel_other_charges</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>其他费用主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>money</td>
<td>是</td>
<td>否</td>
<td>其他费用金额</td>
<td>string</td>
<td>55</td>
</tr>
<tr>
<td>other_type_name</td>
<td>否</td>
<td>否</td>
<td>其他费用类型名称</td>
<td>string</td>
<td>运费</td>
</tr>
<tr>
<td>other_remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>备注</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">其他费用列表</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>采购-其他费用列表</td>
<td>http</td>
<td>post</td>
<td>api/materiel_other_charges_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_id</td>
<td>是</td>
<td>否</td>
<td>采购单id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 1,
            &quot;main_id&quot;: 8,
            &quot;money&quot;: &quot;100.00&quot;,  //其他费用金额
            &quot;other_type_name&quot;: &quot;快递费&quot;,   //其他费用类型
            &quot;other_remark&quot;: &quot;&quot;,     // 备注
            &quot;materiel_id&quot;: 2,
            &quot;created_at&quot;: &quot;2021-11-25 14:59:02&quot;,
            &quot;updated_at&quot;: &quot;2021-11-25 14:59:58&quot;
        }
    ]
}
</code></pre><h4 id="-">付款</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>采购-付款</td>
<td>http</td>
<td>post</td>
<td>api/pay_materiel_money</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_id</td>
<td>是</td>
<td>否</td>
<td>采购单id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>money</td>
<td>是</td>
<td>否</td>
<td>付款金额</td>
<td>float</td>
<td>1</td>
</tr>
<tr>
<td>pay_time</td>
<td>是</td>
<td>否</td>
<td>付款时间</td>
<td>string</td>
<td>2021-11-21 13:22:56</td>
</tr>
<tr>
<td>payer_account</td>
<td>是</td>
<td>否</td>
<td>付款账户</td>
<td>string</td>
<td>2021-11-21 13:22:56</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>付款状态：1-全部 2-部分</td>
<td>string</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 1,
            &quot;main_id&quot;: 8,
            &quot;money&quot;: &quot;100.00&quot;,  //其他费用金额
            &quot;other_type_name&quot;: &quot;快递费&quot;,   //其他费用类型
            &quot;other_remark&quot;: &quot;&quot;,     // 备注
            &quot;materiel_id&quot;: 2,
            &quot;created_at&quot;: &quot;2021-11-25 14:59:02&quot;,
            &quot;updated_at&quot;: &quot;2021-11-25 14:59:58&quot;
        }
    ]
}
</code></pre><h3 id="-mr-chen-">记账(Mr Chen)</h3>
<font color=#FF0000 size=4>  备注: 记账下拉框详见：账户-&gt;记账分类  </font>

<h4 id="-">添加</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>添加记账</td>
<td>http</td>
<td>post</td>
<td>api/tally_add</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>tally_class_name</td>
<td>是</td>
<td>否</td>
<td>记账类型名称</td>
<td>string</td>
<td>进货</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>收支类型：0-收入 1-支出</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>money</td>
<td>否</td>
<td>否</td>
<td>记账金额</td>
<td>string</td>
<td>2.20</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>宏迈科技</td>
</tr>
<tr>
<td>proof_image</td>
<td>否</td>
<td>否</td>
<td>凭证图片(多图逗号分隔)</td>
<td>string</td>
<td>./kkkk.png</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">编辑</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>记账编辑</td>
<td>http</td>
<td>post</td>
<td>api/tally_edit</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>tally_class_name</td>
<td>否</td>
<td>否</td>
<td>记账类型名称</td>
<td>string</td>
<td>进货</td>
</tr>
<tr>
<td>type</td>
<td>否</td>
<td>否</td>
<td>收支类型：0-收入 1-支出</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>money</td>
<td>否</td>
<td>否</td>
<td>记账金额</td>
<td>string</td>
<td>2.20</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>宏迈科技</td>
</tr>
<tr>
<td>proof_image</td>
<td>否</td>
<td>否</td>
<td>凭证图片(多图逗号分隔)</td>
<td>string</td>
<td>./kkkk.png</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">删除</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>删除记账</td>
<td>http</td>
<td>post</td>
<td>api/tally_del</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">列表</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>记账列表</td>
<td>http</td>
<td>post</td>
<td>api/tally_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 2,    主键id
                &quot;tally_class_name&quot;: &quot;买商铺&quot;,   记账类型名称
                &quot;type&quot;: 1,      收支类型：0-收入 1-支出
                &quot;money&quot;: &quot;44.00&quot;,       记账金额
                &quot;remark&quot;: &quot;&quot;,       备注
                &quot;proof_image&quot;: null,    凭证图片(多图逗号分隔)
                &quot;order_no&quot;: &quot;HM71635226030660&quot;,     单号
                &quot;main_id&quot;: 7,
                &quot;add_time&quot;: &quot;2021-12-25 15:16:41&quot;, 添加时间
                &quot;created_at&quot;: &quot;2021-10-26 13:27:10&quot;,
                &quot;updated_at&quot;: null
            },
        ],
        &quot;total&quot;: &quot;10&quot;,
    }
}
</code></pre><h4 id="-">详细</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>记账详细</td>
<td>http</td>
<td>post</td>
<td>api/tally_find</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 2,
        &quot;tally_class_name&quot;: &quot;买商铺&quot;,   记账类型名称
        &quot;type&quot;: 1,      收支类型：0-收入 1-支出
        &quot;money&quot;: &quot;44.00&quot;,       记账金额
        &quot;remark&quot;: &quot;&quot;,       备注
        &quot;proof_image&quot;: null,    凭证图片(多图逗号分隔)
        &quot;order_no&quot;: &quot;HM71635226030660&quot;,     单号
        &quot;main_id&quot;: 7,
        &quot;add_time&quot;: &quot;2021-12-25 15:16:41&quot;, 添加时间
        &quot;created_at&quot;: &quot;2021-10-26 13:27:10&quot;,
        &quot;updated_at&quot;: null
    }
}
</code></pre><h2 id="-">财务操作记录</h2>
<h3 id="-mr-chen-">报溢报损单(Mr Chen)</h3>
<h4 id="-">列表</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>列表</td>
<td>http</td>
<td>post</td>
<td>api/overflow_breakage_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>类型：0-报溢 1-报损</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>repeal_status</td>
<td>是</td>
<td>否</td>
<td>撤销状态：0-未撤销 1-已撤销</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 2,  当前页
        &quot;data&quot;: [
            {
                &quot;id&quot;: 15,       报溢报损主单 主键id
                &quot;main_id&quot;: 7,
                &quot;user_id&quot;: 7,
                &quot;status&quot;: 0,    审批状态(即入库状态):0-待审批 1-通过 2-拒绝
                &quot;proof_image&quot;: &quot;test.png,tes4.png&quot;,     凭证图片(多图逗号分隔)
                &quot;type&quot;: 1,      类型：0-报溢 1-报损
                &quot;repeal_status&quot;: 0,     撤销状态：0-未撤销 1-已撤销
                &quot;created_at&quot;: &quot;2021-10-19 14:33:25&quot;,
                &quot;updated_at&quot;: null,
                &quot;goods_info&quot;: [
                    {
                        &quot;id&quot;: 31,
                        &quot;name&quot;: &quot;测试&quot;,     商品名称
                        &quot;type_name&quot;:&quot;asdf&quot;  型号
                        &quot;num&quot;: 2,       商品数量
                        &quot;image&quot;: &quot;商品图片地址&quot;,    商品图片
                        &quot;warehouse&quot;: &quot;仓库名称&quot;,    仓库
                        &quot;remark&quot;: &quot;备注&quot;    备注
                        &quot;materiel_no&quot;: &quot;&quot;, 编号
                    }
                ],
                &quot;check_info&quot;: [
                    {
                        &quot;id&quot;: 5,
                        &quot;name&quot;: &quot;名字1&quot;,    用户昵称(nickname)
                        &quot;mobile&quot;: &quot;手机号1&quot;,    用户账号名(username)
                        &quot;status&quot;: 0,    审批状态：0-待审批 1-通过 2-拒绝
                        &quot;refund_remark&quot;: null
                    }
                ]
            }
        ],
        &quot;total&quot;: &quot;1&quot; //总条数
    }
}
</code></pre><h4 id="-">详细</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>详细</td>
<td>http</td>
<td>post</td>
<td>api/overflow_breakage_detail</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>报溢报损主单 主键id</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 15,       报溢报损主单 主键id
        &quot;main_id&quot;: 7,
        &quot;user_id&quot;: 7,
        &quot;status&quot;: 0,    审批状态(即入库状态):0-待审批 1-通过 2-拒绝
        &quot;proof_image&quot;: &quot;test.png,tes4.png&quot;,     凭证图片(多图逗号分隔)
        &quot;type&quot;: 1,      类型：0-报溢 1-报损
        &quot;repeal_status&quot;: 0,     撤销状态：0-未撤销 1-已撤销
        &quot;created_at&quot;: &quot;2021-10-19 14:33:25&quot;,
        &quot;updated_at&quot;: null,
        &quot;goods_info&quot;: [
            {
                &quot;id&quot;: 31,
                &quot;materiel_type_id&quot;: 1, 商品关联id
                &quot;name&quot;: &quot;测试&quot;,     商品名称
                &quot;type_name&quot;:&quot;asdf&quot;  型号
                &quot;num&quot;: 2,       商品数量
                &quot;image&quot;: &quot;商品图片地址&quot;,    商品图片
                &quot;warehouse&quot;: &quot;仓库名称&quot;,    仓库
                &quot;remark&quot;: &quot;备注&quot;    备注
                &quot;materiel_no&quot;: &quot;&quot;, 编号
            }
        ],
        &quot;check_info&quot;: [
            {
                &quot;id&quot;: 5,
                &quot;name&quot;: &quot;名字1&quot;,    用户昵称(nickname)
                &quot;mobile&quot;: &quot;手机号1&quot;,    用户账号名(username)
                &quot;status&quot;: 0,    个人审批状态：0-待审批 1-通过 2-拒绝
                &quot;refund_remark&quot;: null
            }
        ]
    }
}
</code></pre><h4 id="-">撤销</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>详细</td>
<td>http</td>
<td>post</td>
<td>api/overflow_breakage_repeal</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>报溢报损主单 主键id</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-mr-chen-">退货单(Mr Chen)</h3>
<h4 id="-">列表</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>添加列表</td>
<td>http</td>
<td>post</td>
<td>api/sales_return_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>repeal_status</td>
<td>是</td>
<td>否</td>
<td>撤销状态：0-未撤销 1-已撤销</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 7,                        退货单主键id
                &quot;main_id&quot;: 7,
                &quot;user_id&quot;: 7,
                &quot;customer_name&quot;: &quot;孙子&quot;,        客户姓名
                &quot;proof_image&quot;: &quot;ii.png&quot;,        凭证图片(多图逗号分隔)
                &quot;discount&quot;: 80,                 折扣 ：百分比
                &quot;tax_rate&quot;: 13,                 税率 ：百分比
                &quot;final_money&quot;: &quot;51&quot;,            实际应收金额（即折扣或抹零后价格或改价金额）
                &quot;money&quot;: &quot;55.20&quot;,               货款金额（纯商品金额）
                &quot;real_money&quot;: &quot;10.00&quot;,          实收金额（实际入账）
                &quot;is_zero_suppression&quot;: 0,       是否改价：0-否 1-是
                &quot;remark&quot;: &quot;hhh&quot;,                备注
                &quot;out_order_no&quot;: &quot;fasdfadsggogjhdghpa&quot;,      外部单号
                &quot;order_no&quot;: &quot;ST71635925491557&quot;,             订单号
                &quot;out_status&quot;: 0,                            出库状态：0-待出库 1-部分出库 2-全部出库
                &quot;pay_status&quot;: 0,                            付款状态：0-待付款 1-部分付款 2-全部付款
                &quot;refund_date&quot;: &quot;2021-09-08 00:00:00&quot;,       退货时间
                &quot;repeal_status&quot;: 0,                         撤销状态：0-未撤销 1-已撤销
                &quot;created_at&quot;: &quot;2021-11-03 15:44:51&quot;,
                &quot;updated_at&quot;: &quot;2021-11-03 15:55:34&quot;,
                &quot;username&quot;: &quot;15505523456&quot;,      操作人
                &quot;goods_info&quot;: [
                    {

                        &quot;name&quot;: &quot;测试&quot;,             商品名称
                        &quot;type_name&quot;: &quot;规格&quot;,        型号
                        &quot;price&quot;: &quot;2.30&quot;,            售价
                        &quot;cost_price&quot;: &quot;0.00&quot;,
                        &quot;num&quot;: 2,                   商品数量
                        &quot;image&quot;: &quot;商品图片地址&quot;,    商品图片
                        &quot;warehouse&quot;: &quot;仓库名称&quot;,    仓库名称
                        &quot;warehouse_id&quot;: 1,      
                        &quot;piece&quot;: 0,                 件数
                        &quot;return_id&quot;: 30,            退货单主键id
                    }
                ]
            }
        ],
        &quot;total&quot;: &quot;10&quot;,  总条数
    }
}
</code></pre><h4 id="-">详细</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>退货单详细</td>
<td>http</td>
<td>post</td>
<td>api/sales_return_find（detail_sales_return_find[无token]）</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>退货主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 7,                        退货单主键id
        &quot;main_id&quot;: 7,
        &quot;user_id&quot;: 7,
        &quot;customer_name&quot;: &quot;孙子&quot;,        客户姓名
        &quot;proof_image&quot;: &quot;ii.png&quot;,        凭证图片(多图逗号分隔)
        &quot;discount&quot;: 80,                 折扣 ：百分比
        &quot;tax_rate&quot;: 13,                 税率 ：百分比
        &quot;final_money&quot;: &quot;51&quot;,            实际应收金额（即折扣或抹零后价格或改价金额）
        &quot;money&quot;: &quot;55.20&quot;,               货款金额（纯商品金额）
        &quot;real_money&quot;: &quot;10.00&quot;,          实收金额（实际入账）
        &quot;is_zero_suppression&quot;: 0,       是否改价：0-否 1-是
        &quot;remark&quot;: &quot;hhh&quot;,                备注
        &quot;out_order_no&quot;: &quot;fasdfadsggogjhdghpa&quot;,      外部单号
        &quot;order_no&quot;: &quot;ST71635925491557&quot;,             订单号
        &quot;out_status&quot;: 0,                            出库状态：0-待出库 1-部分出库 2-全部出库
        &quot;pay_status&quot;: 0,                            付款状态：0-待付款 1-部分付款 2-全部付款
        &quot;refund_date&quot;: &quot;2021-09-08 00:00:00&quot;,       退货时间
        &quot;repeal_status&quot;: 0,                         撤销状态：0-未撤销 1-已撤销
        &quot;created_at&quot;: &quot;2021-11-03 15:44:51&quot;,
        &quot;updated_at&quot;: &quot;2021-11-03 15:55:34&quot;,
        &quot;goods_info&quot;: [
            {
                &quot;materiel_type_id&quot;: 1, 商品关联id
                &quot;name&quot;: &quot;测试&quot;,             商品名称
                &quot;type_name&quot;: &quot;规格&quot;,        型号
                &quot;price&quot;: &quot;2.30&quot;,            售价
                &quot;cost_price&quot;: &quot;0.00&quot;,
                &quot;num&quot;: 2,                   商品数量
                &quot;image&quot;: &quot;商品图片地址&quot;,    商品图片
                &quot;warehouse&quot;: &quot;仓库名称&quot;,    仓库名称
                &quot;warehouse_id&quot;: 1,      
                &quot;piece&quot;: 0,                 件数
                &quot;return_id&quot;: 30,            退货单主键id
                &quot;in_storage_num&quot;: 2         在库数量
                &quot;in_num&quot;: 0,                已入库数量
                &quot;is_in&quot;: 0,                 是否入库： 1-是  0-否
            }
        ]
    }
}
</code></pre><h4 id="-">撤销</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>退货单撤销</td>
<td>http</td>
<td>post</td>
<td>api/sales_return_repeal</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>销售主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-mr-chen-">销售单(Mr Chen)</h3>
<h4 id="-">列表</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>销售列表</td>
<td>http</td>
<td>post</td>
<td>api/sell_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>repeal_status</td>
<td>是</td>
<td>否</td>
<td>撤销状态：0-未撤销 1-已撤销</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 30,       销售单主键id
                &quot;main_id&quot;: 7,
                &quot;user_id&quot;: 7,
                &quot;customer_name&quot;: &quot;陈&quot;,      客户姓名
                &quot;consignee&quot;: &quot;杨总&quot;,        收货人
                &quot;phone&quot;: &quot;1897766554&quot;,      联系电话
                &quot;address&quot;: &quot;东海大道&quot;,      收货地址
                &quot;proof_image&quot;: &quot;./dd.png&quot;,  凭证图片(多图逗号分隔)
                &quot;discount&quot;: 80,         折扣 ：百分比
                &quot;tax_rate&quot;: 10,         税率 ：百分比
                &quot;final_money&quot;: &quot;49.68&quot;,     实际应收金额（即折扣或抹零后价格不含运费）
                &quot;money&quot;: &quot;55.20&quot;,           货款金额（纯商品金额）
                &quot;real_money&quot;: &quot;0.00&quot;,       实收金额（实际入账）
                &quot;is_zero_suppression&quot;: 0,       是否抹零：0-否 1-是
                &quot;other_charges&quot;: &quot;0.00&quot;,        其他费用
                &quot;remark&quot;: &quot;测试&quot;,               备注
                &quot;out_order_no&quot;: &quot;asdgsgadf704of9w&quot;,     外部单号
                &quot;order_no&quot;: &quot;S71635905637166&quot;,          订单号
                &quot;sell_date&quot;: &quot;2021-11-01 20:20:20&quot;,     销售时间
                &quot;logistics_company&quot;: &quot;&quot;,    物流公司
                &quot;logistics_order_no&quot;: &quot;&quot;,   物流单号
                &quot;out_status&quot;: 0,        出库状态：0-待出库 1-部分出库 2-全部出库
                &quot;pay_status&quot;: 0,        付款状态：0-待付款 1-部分付款 2-全部付款
                &quot;order_time&quot;: null,     下单时间
                &quot;deliver_time&quot;: null,   发货时间
                &quot;deliver_person&quot;: &quot;&quot;,   发货人
                &quot;deliver_phone&quot;: &quot;&quot;,    发货人联系方式
                &quot;deliver_addr&quot;: &quot;&quot;,     发货地址
                &quot;repeal_status&quot;: 0,     撤销状态：0-未撤销 1-已撤销
                &quot;deliver_goods_type&quot;: 2,    发货方式：1-自提 2-代发 3-送货
                &quot;transport_type&quot;: 4,        运输方式：1-空运 2-海运 3-铁路 4-公路
                &quot;is_draft&quot;: 0,              是否草稿：1-是 0-否
                &quot;username&quot;: &quot;15505523456&quot;,      操作人
                &quot;created_at&quot;: &quot;2021-11-03 10:13:57&quot;,
                &quot;updated_at&quot;: &quot;2021-11-03 10:13:57&quot;,
                &quot;goods_info&quot;: [
                    {
                        &quot;name&quot;: &quot;测试&quot;,             商品名称
                        &quot;type_name&quot;: &quot;规格&quot;,        型号
                        &quot;price&quot;: &quot;2.30&quot;,            售价
                        &quot;cost_price&quot;: &quot;0.00&quot;,
                        &quot;num&quot;: 2,                   商品数量
                        &quot;image&quot;: &quot;商品图片地址&quot;,    商品图片
                        &quot;warehouse&quot;: &quot;仓库名称&quot;,    仓库名称
                        &quot;warehouse_id&quot;: 1,      
                        &quot;piece&quot;: 0,                 件数
                        &quot;sell_id&quot;: 30,              销售单主键id
                    }
                ],
                &quot;driver&quot;:  {
                    &quot;id&quot;: 5,    司机主键id
                    &quot;plate_number&quot;: &quot;皖A*98098&quot;,    车牌   
                    &quot;name&quot;: &quot;陈&quot;,                   司机姓名
                    &quot;phone&quot;: &quot;18966558879&quot;,         提货司机电话
                    &quot;logistics_company&quot;: &quot;&quot;,        物流公司
                    &quot;remark&quot;: &quot;&quot;,                   备注
                    &quot;plate_image&quot;: &quot;k.png&quot;,         车牌照片
                    &quot;id_card_image&quot;: &quot;ks.png&quot;,      身份证照片
                    &quot;driving_licence&quot;: &quot;kks.png&quot;,   驾驶证照片
                    &quot;sell_id&quot;: 8,                   销售单主键id
                }
            }
        ],
        &quot;per_page&quot;: &quot;1&quot;,
    }
}
</code></pre><h4 id="-">详细</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>销售单详细</td>
<td>http</td>
<td>post</td>
<td>api/sell_find （detail_sell_find[无token]）</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>销售单主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 30,       销售单主键id
        &quot;main_id&quot;: 7,
        &quot;user_id&quot;: 7,
        &quot;customer_name&quot;: &quot;陈&quot;,      客户姓名
        &quot;consignee&quot;: &quot;杨总&quot;,        收货人
        &quot;phone&quot;: &quot;1897766554&quot;,      联系电话
        &quot;address&quot;: &quot;东海大道&quot;,      收货地址
        &quot;proof_image&quot;: &quot;./dd.png&quot;,  凭证图片(多图逗号分隔)
        &quot;discount&quot;: 80,         折扣 ：百分比
        &quot;tax_rate&quot;: 10,         税率 ：百分比
        &quot;final_money&quot;: &quot;49.68&quot;,     实际应收金额（即折扣或抹零后价格不含运费）
        &quot;money&quot;: &quot;55.20&quot;,           货款金额（纯商品金额）
        &quot;real_money&quot;: &quot;0.00&quot;,       实收金额（实际入账）
        &quot;is_zero_suppression&quot;: 0,       是否抹零：0-否 1-是
        &quot;other_charges&quot;: &quot;0.00&quot;,        其他费用
        &quot;remark&quot;: &quot;测试&quot;,               备注
        &quot;out_order_no&quot;: &quot;asdgsgadf704of9w&quot;,     外部单号
        &quot;order_no&quot;: &quot;S71635905637166&quot;,          订单号
        &quot;sell_date&quot;: &quot;2021-11-01 20:20:20&quot;,     销售时间
        &quot;logistics_company&quot;: &quot;&quot;,    物流公司
        &quot;logistics_order_no&quot;: &quot;&quot;,   物流单号
        &quot;out_status&quot;: 0,        出库状态：0-待出库 1-部分出库 2-全部出库
        &quot;pay_status&quot;: 0,        付款状态：0-待付款 1-部分付款 2-全部付款
        &quot;order_time&quot;: null,     下单时间
        &quot;deliver_time&quot;: null,   发货时间
        &quot;deliver_person&quot;: &quot;&quot;,   发货人
        &quot;deliver_phone&quot;: &quot;&quot;,    发货人联系方式
        &quot;deliver_addr&quot;: &quot;&quot;,     发货地址
        &quot;repeal_status&quot;: 0,     撤销状态：0-未撤销 1-已撤销
        &quot;deliver_goods_type&quot;: 2,    发货方式：1-自提 2-代发 3-送货
        &quot;transport_type&quot;: 4,        运输方式：1-空运 2-海运 3-铁路 4-公路
        &quot;is_draft&quot;: 0,              是否草稿：1-是 0-否
        &quot;source&quot;: &quot;&quot;,               来源
        &quot;username&quot;: &quot;15505523456&quot;,  操作人
        &quot;total_piece&quot;: 18,          商品总件数
        &quot;compony_name&quot;: &quot;红木科技&quot;,  客户公司名称
        &quot;created_at&quot;: &quot;2021-11-03 10:13:57&quot;,
        &quot;updated_at&quot;: &quot;2021-11-03 10:13:57&quot;,
        &quot;goods_info&quot;: [
            {
                &quot;materiel_type_id&quot;: 1,      商品关联id
                &quot;name&quot;: &quot;测试&quot;,             商品名称
                &quot;type_name&quot;: &quot;规格&quot;,        型号
                &quot;price&quot;: &quot;2.30&quot;,            售价
                &quot;cost_price&quot;: &quot;0.00&quot;,
                &quot;num&quot;: 2,                   商品数量
                &quot;image&quot;: &quot;商品图片地址&quot;,      商品图片
                &quot;warehouse&quot;: &quot;仓库名称&quot;,     仓库名称
                &quot;warehouse_id&quot;: 1,      
                &quot;piece&quot;: 0,                 件数
                &quot;sell_id&quot;: 30,              销售单主键id
                &quot;in_storage_num&quot;: 2         在库数量
                &quot;out_num&quot;: 0,               已出库数量
                &quot;is_out&quot;: 0,                是否出库： 1-是  0-否
            }
        ],
        &quot;driver&quot;:  {
            &quot;id&quot;: 5,    司机主键id
            &quot;plate_number&quot;: &quot;皖A*98098&quot;,    车牌   
            &quot;name&quot;: &quot;陈&quot;,                   司机姓名
            &quot;phone&quot;: &quot;18966558879&quot;,         提货司机电话
            &quot;logistics_company&quot;: &quot;&quot;,        物流公司
            &quot;remark&quot;: &quot;&quot;,                   备注
            &quot;plate_image&quot;: &quot;k.png&quot;,         车牌照片
            &quot;id_card_image&quot;: &quot;ks.png&quot;,      身份证照片
            &quot;driving_licence&quot;: &quot;kks.png&quot;,   驾驶证照片
            &quot;sell_id&quot;: 8,                   销售单主键id
        }
    }
</code></pre><h4 id="-">撤销</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>销售单撤销</td>
<td>http</td>
<td>post</td>
<td>api/sell_repeal</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>销售单主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">重新下单</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>重新下单</td>
<td>http</td>
<td>post</td>
<td>api/sell_add_again</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>销售单主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: 31  销售单主键id
}
</code></pre><h3 id="-">采购单</h3>
<h4 id="-">列表</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>列表</td>
<td>http</td>
<td>post</td>
<td>api/materiel_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>repeal_status</td>
<td>是</td>
<td>否</td>
<td>撤销状态：0-未撤销 1-已撤销</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 1,    //采购单主键id
                &quot;repeal_status&quot;: 0, //是否撤销;0:否;1:是;
                &quot;purchase_time&quot;: &quot;1970-01-01 08:33:41&quot;, //采购日期
                &quot;supplier_name&quot;: &quot;客户001&quot;,   //供应商名称
                &quot;final_money&quot;: &quot;14803.00&quot;,  //实付金额(修改价格或折扣后金额)
                &#39;out_order_no&#39;: &quot;123&quot;,  //采购单外部单号
                &quot;purchase_no&quot;: &quot;20211129164857755624859&quot;,   //采购内部单号
                &quot;username&quot;: &quot;掌上仓管&quot;, //操作人账号
                &quot;nickname&quot;: &quot;施艳梅&quot;,  //操作人昵称
                &quot;total&quot;: 400,   //采购总数
                &quot;materiel_content&quot;: [
                    {
                        &quot;id&quot;: 1,    //采购单内容主键id
                        &quot;materiel_id&quot;: 1,   //采购单id
                        &quot;unit_price&quot;: &quot;10.50&quot;,  //单价
                        &quot;num&quot;: 100, //数量
                        &quot;rest_num&quot;: 110,//剩余可入库数量
                        &quot;materiel_name&quot;: &quot;牛卫士洗衣凝珠&quot;, //物料名称
                        &quot;type_name&quot;: &quot;香水1&quot;, //物料型号
                        &quot;materiel_no&quot;: &quot;13246578&quot;,  //物料编号
                        &quot;materiel_img&quot;: &quot;&quot;  //物料图
                    }
                    ......
                ]
            }
        ],
        &quot;total&quot;: 1  //总条数
    }
}
</code></pre><h4 id="-">删除</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>删除采购单</td>
<td>http</td>
<td>post</td>
<td>api/del_materiel</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>采购单id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>备注</p>
<pre><code>    采购单出现部分付款或部分入库时，无法完成删除操作
</code></pre></blockquote>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">撤销采购单</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>撤销采购单</td>
<td>http</td>
<td>post</td>
<td>api/cancel_materiel</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>采购单id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>备注</p>
<pre><code>    采购单出现部分付款或部分入库时，无法完成撤销操作
</code></pre></blockquote>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">重新下单</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>采购单-重新下单</td>
<td>http</td>
<td>post</td>
<td>api/materiel_add_again</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>采购单id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">详细</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>采购单-详细</td>
<td>http</td>
<td>post</td>
<td>api/materiel_detail</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>采购单id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 10,   //采购单主键id
        &quot;main_id&quot;: 8,
        &quot;repeal_status&quot;: 0, //是否撤销;0:否;1:是;
        &quot;out_order_no&quot;: &quot;123&quot;,  //外部单号
        &quot;proof_image&quot;: &quot;123.png,234.png&quot;,   //凭证
        &quot;user_id&quot;: 1242,    //采购人id
        &quot;delete_flag&quot;: 0,
        &quot;created_at&quot;: &quot;2021-11-26 13:46:48&quot;,    
        &quot;updated_at&quot;: &quot;1970-01-01 08:33:41&quot;,
        &quot;purchase_no&quot;: &quot;20211124144624022843725&quot;,   //采购单内部单号
        &quot;supplier_customer_id&quot;: 5,  //供应商id
        &quot;remark&quot;: &quot;&quot;,   //备注
        &quot;is_draft&quot;: 0,
        &quot;preferential_way&quot;: 0,  //优惠方式;0:无;1:修改价格;2:折扣优惠;
        &quot;tax_rate&quot;: 13, //税率
        &quot;discount&quot;: 0, //折扣
        &quot;final_money&quot;: &quot;14803.00&quot;,  //实付金额(修改价格后或折扣后金额)
        &quot;real_money&quot;: &quot;14803.00&quot;,   //应付金额(修改价格前或折扣优惠前金额)
        &quot;original_money&quot;: &quot;13100.00&quot;,   //原金额(税前应付)
        &#39;fact_money&#39;: &quot;101.00&quot;  //实付金额
        &quot;purchase_time&quot;: &quot;2021-11-24 15:56:23&quot;, //采购日期
        &quot;shipping_method&quot;: 1,   //发货方式：1-自提 2-代发 3-送货
        &quot;transport_type&quot;: 1,    //运输方式：1-空运 2-海运 3-铁路 4-公路
        &quot;logistics_company&quot;: null,  //物流公司
        &quot;logistics_order_no&quot;: null, //物流单号
        &quot;deliver_person&quot;: &quot;客户001&quot;,  //发货人
        &quot;deliver_phone&quot;: &quot;15267902931&quot;, /发货人联系方式/
        &quot;deliver_address&quot;: &quot;安徽省蚌埠市东海大道888&quot;, //发货地址
        &quot;other_charges&quot;: &quot;10.00&quot;,   //其他费用
        &quot;source&quot;: 1, //订单来源（1-安卓 2-ios 3-pc 4-微信小程序 5-抖音小程序）
        &quot;pay_status&quot;: 0,    //付款状态：0-待付款 1-部分付款 2-全部付款
        &quot;in_storage_status&quot;: 0, //入库状态:0:待入库;1:部分入库;2:全部入库;
        &quot;supplier_name&quot;: &quot;客户001&quot;,   //供应商名称
        &quot;nickname&quot;: &quot;施艳梅&quot;,  //采购人昵称
        &quot;username&quot;: &quot;掌上仓管&quot;, //采购人账号
        &quot;materiel_content&quot;: [
            {
                &quot;id&quot;: 25,   //采购单内容主键id
                &quot;materiel_id&quot;: 10,  //采购单主键id
                &quot;unit_price&quot;: &quot;10.50&quot;,  //单价
                &quot;num&quot;: 100, //采购数量
                &quot;in_num&quot;: 50,   //已入库数量
                &quot;is_in&quot;: 1,     //是否入库;0:否;1:是;
                &quot;in_storage_num&quot;: 800,  //当前物料实时库存数
                &quot;materiel_name&quot;: &quot;牛卫士洗衣凝珠&quot;, //物料名
                &quot;type_name&quot;: &quot;香水1&quot;, //物料型号
                &quot;materiel_no&quot;: &quot;13246578&quot;,  //物料编号
                &quot;materiel_img&quot;: &quot;&quot;,  //物料图
                &quot;storage_name&quot;: &quot;B1-10&quot;     //入库仓库
            },
            ......
        ]
    }
}
</code></pre><h4 id="-no-token-">详细(no token)</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>采购单-详细</td>
<td>http</td>
<td>get</td>
<td>api/materiel_detail_common</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>采购单id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 10,   //采购单主键id
            &quot;main_id&quot;: 8,
            &quot;repeal_status&quot;: 0, //是否撤销;0:否;1:是;
            &quot;out_order_no&quot;: &quot;123&quot;,  //外部单号
            &quot;proof_image&quot;: &quot;123.png,234.png&quot;,   //凭证
            &quot;user_id&quot;: 1242,    //采购人id
            &quot;delete_flag&quot;: 0,
            &quot;created_at&quot;: &quot;2021-11-26 13:46:48&quot;,    
            &quot;updated_at&quot;: &quot;1970-01-01 08:33:41&quot;,
            &quot;purchase_no&quot;: &quot;20211124144624022843725&quot;,   //采购单内部单号
            &quot;supplier_customer_id&quot;: 5,  //供应商id
            &quot;remark&quot;: &quot;&quot;,   //备注
            &quot;is_draft&quot;: 0,
            &quot;preferential_way&quot;: 0,  //优惠方式;0:无;1:修改价格;2:折扣优惠;
            &quot;tax_rate&quot;: 13, //税率
            &quot;discount&quot;: 0, //折扣
            &quot;final_money&quot;: &quot;14803.00&quot;,  //实付金额(修改价格后或折扣后金额)
            &quot;real_money&quot;: &quot;14803.00&quot;,   //应付金额(修改价格前或折扣优惠前金额)
            &quot;original_money&quot;: &quot;13100.00&quot;,   //原金额(税前应付)
            &#39;fact_money&#39;: &quot;101.00&quot;  //实付金额
            &quot;purchase_time&quot;: &quot;2021-11-24 15:56:23&quot;, //采购日期
            &quot;shipping_method&quot;: 1,   //发货方式：1-自提 2-代发 3-送货
            &quot;transport_type&quot;: 1,    //运输方式：1-空运 2-海运 3-铁路 4-公路
            &quot;logistics_company&quot;: null,  //物流公司
            &quot;logistics_order_no&quot;: null, //物流单号
            &quot;deliver_person&quot;: &quot;客户001&quot;,  //发货人
            &quot;deliver_phone&quot;: &quot;15267902931&quot;, /发货人联系方式/
            &quot;deliver_address&quot;: &quot;安徽省蚌埠市东海大道888&quot;, //发货地址
            &quot;other_charges&quot;: &quot;10.00&quot;,   //其他费用
            &quot;source&quot;: null, //订单来源
            &quot;pay_status&quot;: 0,    //付款状态：0-待付款 1-部分付款 2-全部付款
            &quot;in_storage_status&quot;: 0, //入库状态:0:待入库;1:部分入库;2:全部入库;
            &quot;supplier_name&quot;: &quot;客户001&quot;,   //供应商名称
            &quot;nickname&quot;: &quot;施艳梅&quot;,  //采购人昵称
            &quot;username&quot;: &quot;掌上仓管&quot;, //采购人账号
            &quot;materiel_content&quot;: [
                {
                    &quot;materiel_id&quot;: 1,//采购单主键id
                    &quot;unit_price&quot;: &quot;10.50&quot;,//单价
                    &quot;num&quot;: 100,//采购数量
                    &quot;materiel_name&quot;: &quot;牛卫士洗衣凝珠&quot;,//物料名
                    &quot;type_name&quot;: &quot;香水1&quot;,//物料型号
                    &quot;materiel_no&quot;: &quot;13246578&quot;,//物料编号
                    &quot;materiel_img&quot;: &quot;&quot;, //物料图
                    &quot;storage_name&quot;: &quot;蚌埠掌上网络科技有限公司&quot;//入库仓库
                },
                ......
            ]
        }
    ]
}
</code></pre><h4 id="-">入库</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>采购单-入库</td>
<td>http</td>
<td>post</td>
<td>api/materiel_in_storage</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>content</td>
<td>是</td>
<td>否</td>
<td>采购单id</td>
<td>json数组</td>
<td>1</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>入库状态:2-全部 1-部分</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>in_storage_time</td>
<td>是</td>
<td>否</td>
<td>入库时间</td>
<td>date</td>
<td>2021-11-12 13:25:20</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>备注</td>
</tr>
</tbody>
</table>
<blockquote>
<p><code>content</code>示例</p>
<pre><code>[{&quot;materiel_content_id&quot;:1,&quot;storage_id&quot;:3,&quot;num&quot;:10,&quot;materiel_id&quot;:10},{&quot;materiel_content_id&quot;:4,&quot;storage_id&quot;:3,&quot;num&quot;:10,&quot;materiel_id&quot;:10}]
</code></pre></blockquote>
<blockquote>
<p><code>content</code>说明</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>materiel_content_id</td>
<td>是</td>
<td>否</td>
<td>采购单内容主键id</td>
<td>json数组</td>
<td>1</td>
</tr>
<tr>
<td>storage_id</td>
<td>是</td>
<td>否</td>
<td>入库目标仓库id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>采购商品单价</td>
<td>float</td>
<td>10.1</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>入库数量</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>materiel_id</td>
<td>是</td>
<td>否</td>
<td>采购单主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>备注</p>
<pre><code>全部入库时，实际入库数量以数据库中存储的剩余可以操作入库数量为准，参数`num`可默认为0；
部分入库时，实际入库数量以用户手动输入的结果为准，参数`num`为用户所填写的入库物料数；
`price`可以进行手动调整后入库
</code></pre></blockquote>
<h4 id="-">修改采购单商品单价</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>采购单-修改采购单商品单价</td>
<td>http</td>
<td>post</td>
<td>api/edit_unit_price</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>采购单内容商品id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>unit_price</td>
<td>是</td>
<td>否</td>
<td>采购单内容商品id</td>
<td>float</td>
<td>10.01</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &#39;code&#39;: 0,
    &#39;msg&#39;: &#39;success&#39;,
    &#39;data&#39;: &quot;&quot;
}
</code></pre><h2 id="-mr-chen-">统计报表(Mr Chen)</h2>
<h3 id="-">销售统计</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>销售统计</td>
<td>http</td>
<td>post</td>
<td>api/statistics_sell_proceed</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>时间： 1-今日 2-本月 3-本季</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;data&quot;: {
            &quot;current_page&quot;: 1,
            &quot;data&quot;: [
                {
                    &quot;total_price&quot;: &quot;192.80&quot;,            销售金额
                    &quot;sell_date&quot;: &quot;2021-11-16 00:00:00&quot;  时间
                }
            ],
            &quot;per_page&quot;: &quot;5&quot;,
            &quot;total&quot;: 3
        },
        &quot;total_money&quot;: 813.8        总额
    }
}
</code></pre><h3 id="-">已销售统计</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>已销售统计</td>
<td>http</td>
<td>post</td>
<td>api/statistics_sell</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>时间： 1-今日 2-本月 3-本季</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;data&quot;: {
            &quot;current_page&quot;: 2,
            &quot;data&quot;: [
                {
                    &quot;num&quot;: &quot;30&quot;,                销量
                    &quot;image&quot;: &quot;商品图片地址&quot;,    图片
                    &quot;name&quot;: &quot;测44试&quot;,           商品名称
                    &quot;type_name&quot;: &quot;规格&quot;,        规格
                    &quot;materiel_no&quot;: &quot;&quot;,          编号
                    &quot;profit&quot;: &quot;69.00&quot;,          利润
                    &quot;total_price&quot;: &quot;69.00&quot;      销售额
                }
            ],
            &quot;per_page&quot;: &quot;3&quot;,
            &quot;total&quot;: 8
        },
        &quot;total_num&quot;: &quot;14&quot;,          总数量
        &quot;total_money&quot;: 816.8        总销售额
    }
}
</code></pre><h3 id="-">成本统计</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>销售统计</td>
<td>http</td>
<td>post</td>
<td>api/statistics_cost</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>时间： 1-今日 2-本月 3-本季</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;data&quot;: {
            &quot;current_page&quot;: 1,
            &quot;data&quot;: [
                {
                    &quot;num&quot;: &quot;30&quot;,                销量
                    &quot;image&quot;: &quot;商品图片地址&quot;,    图片
                    &quot;name&quot;: &quot;测44试&quot;,           商品名称
                    &quot;type_name&quot;: &quot;规格&quot;,        规格
                    &quot;materiel_no&quot;: &quot;&quot;,          编号
                    &quot;price&quot;: 2.3,               单价
                    &quot;total_cost_price&quot;: &quot;0.00&quot;  成本价
                }
            ],
            &quot;per_page&quot;: &quot;3&quot;,
            &quot;total&quot;: 8
        },
        &quot;total_num&quot;: &quot;14&quot;,      总数量
        &quot;total_money&quot;: 22       总成本
    }
}
</code></pre><h3 id="-">进货</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>进货统计</td>
<td>http</td>
<td>post</td>
<td>api/statistics_stock</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>时间： 1-今日 2-本月 3-本季</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;data&quot;: {
            &quot;current_page&quot;: 1,
            &quot;data&quot;: [
                {
                    &quot;num&quot;: &quot;20&quot;,                销量
                    &quot;materiel_img&quot;: &quot;哈哈&quot;,      图片
                    &quot;materiel_name&quot;: &quot;测试&quot;,     名称
                    &quot;type_name&quot;: &quot;订&quot;,           规格
                    &quot;materiel_no&quot;: null,        编号
                    &quot;total_price&quot;: &quot;200.00&quot;     商品总价
                }
            ],
            &quot;per_page&quot;: &quot;10&quot;,
            &quot;total&quot;: 2
        },
        &quot;total_num&quot;: 60,        总数量
        &quot;total_money&quot;: 600      总价
    }
}
</code></pre><h3 id="-">记账</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>进货统计</td>
<td>http</td>
<td>post</td>
<td>api/statistics_tally</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>时间： 1-今日 2-本月 3-本季</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>bill_type</td>
<td>否</td>
<td>否</td>
<td>收支类型：0-收入 1-支出</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;total_money&quot;: &quot;270.00&quot;,    总额
        &quot;data&quot;: {
            &quot;current_page&quot;: 1,
            &quot;data&quot;: [
                {
                    &quot;money&quot;: &quot;44.00&quot;,               费用
                    &quot;tally_class_name&quot;: &quot;买商铺&quot;    类型
                    &quot;created_at&quot;: &quot;2021-11-12 00:00:00&quot; 日期
                }
            ],
            &quot;per_page&quot;: &quot;3&quot;,
            &quot;total&quot;: 1
        }
    }
}
</code></pre><h1 id="-mr-chen-">审批(Mr Chen)</h1>
<h2 id="-">列表</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>发货单列表</td>
<td>http</td>
<td>post</td>
<td>api/check_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>类型：0-报溢报损 1-销售采购</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 1,
                &quot;type&quot;: 3,      类型：0-报溢 1-报损 2-销售 3-采购
                &quot;all_id&quot;: 25,   关联id
                &quot;main_id&quot;: 7,
                &quot;remark&quot;: null, 报溢报损备注
                &quot;user_id&quot;: 7,
                &quot;status&quot;: 0,    状态 0-未完成 1-完成  (后端查询使用与前端无关)
                &quot;check_person&quot;: null,
                &quot;out_in_status&quot;: null,  出入库状态：0-待处理(全部) 1-部分状态
                &quot;order_no&quot;: &quot;S71641432370992&quot;,     订单号
                &quot;created_at&quot;: &quot;2021-11-09 15:24:16&quot;,
                &quot;updated_at&quot;: &quot;2021-11-09 15:24:16&quot;,
                &quot;username&quot;: &quot;15505523456&quot;   操作人
            }
        ],
        &quot;per_page&quot;: &quot;10&quot;,
    }
}
</code></pre><h2 id="-">同意或拒绝</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>审批同意或拒绝</td>
<td>http</td>
<td>post</td>
<td>api/check_agree_or_refund</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>审批主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>all_id</td>
<td>是</td>
<td>否</td>
<td>关联id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>审批状态：0-拒绝 1-同意</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>看你不顺眼</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">出库(作废)</h2>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>审批出库</td>
<td>http</td>
<td>post</td>
<td>api/check_out</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>审批主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>否</td>
<td>出入库状态：0-部分 1-全部</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>goods_info</td>
<td>否</td>
<td>否</td>
<td>商品信息</td>
<td>array</td>
<td></td>
</tr>
</tbody>
</table>
<blockquote>
<p>goods_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>商品名称</td>
<td>string</td>
<td>笔记本</td>
</tr>
<tr>
<td>type_name</td>
<td>是</td>
<td>否</td>
<td>规格</td>
<td>string</td>
<td>Mac</td>
</tr>
<tr>
<td>price</td>
<td>是</td>
<td>否</td>
<td>价格</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>3</td>
</tr>
<tr>
<td>image</td>
<td>否</td>
<td>否</td>
<td>商品图片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>warehouse</td>
<td>是</td>
<td>否</td>
<td>仓库名称</td>
<td>string</td>
<td>一仓</td>
</tr>
<tr>
<td>warehouse_id</td>
<td>是</td>
<td>否</td>
<td>仓库主键id</td>
<td>integer</td>
<td>10</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h1 id="-">账户</h1>
<h2 id="-">模板</h2>
<h3 id="-mr-chen-">发货单(Mr Chen)</h3>
<font color=#FF0000 size=4>  备注: 司机列表详见：账户-&gt;模板-&gt;司机</font>

<h4 id="-">列表</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>发货单列表</td>
<td>http</td>
<td>post</td>
<td>api/dispatch_bill_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 4,                            发货单主键id
                &quot;main_id&quot;: 7,
                &quot;user_id&quot;: 7,
                &quot;consignee&quot;: &quot;杨总总&quot;,              收货人
                &quot;phone&quot;: &quot;19988779988&quot;,             收货人联系电话
                &quot;address&quot;: &quot;南京火车站&quot;,            收货地址
                &quot;deliver_time&quot;: &quot;2021-09-11 00:00:00&quot;,  发货时间
                &quot;deliver_person&quot;: &quot;孙总&quot;,           发货人
                &quot;deliver_phone&quot;: &quot;18955333311&quot;,     发货人联系方式
                &quot;deliver_addr&quot;: &quot;东海大道&quot;,         发货地址
                &quot;order_no&quot;: &quot;F71636351480559&quot;,      单号
                &quot;remark&quot;: &quot;测试&quot;,                   备注
                &quot;created_at&quot;: &quot;2021-11-08 14:04:40&quot;,
                &quot;updated_at&quot;: &quot;2021-11-08 14:04:40&quot;,
                &quot;goods_info&quot;: [
                    {
                        &quot;id&quot;: 8,                    商品主键id
                        &quot;name&quot;: &quot;保温箱&quot;,           商品名称
                        &quot;type_name&quot;: &quot;17升&quot;,        规格
                        &quot;num&quot;: 2,                   商品数量
                        &quot;piece&quot;: 1,                 件数
                        &quot;main_id&quot;: 7,
                        &quot;dispatch_bill_id&quot;: 4,
                    }
                ],
                &quot;driver&quot;: {
                    &quot;id&quot;: 3,                            
                    &quot;plate_number&quot;: &quot;皖A*39485&quot;,        车牌
                    &quot;name&quot;: &quot;干活的&quot;,                   司机姓名
                    &quot;phone&quot;: &quot;18877669998&quot;,             提货司机电话
                    &quot;logistics_company&quot;: &quot;德邦物流&quot;,    物流公司
                    &quot;remark&quot;: &quot;&quot;,                       备注
                    &quot;plate_image&quot;: &quot;bb.png&quot;,            车牌照片
                    &quot;id_card_image&quot;: &quot;bb.png&quot;,          身份证照片
                    &quot;driving_licence&quot;: &quot;bb.png&quot;,        驾驶证照片
                    &quot;dispatch_bill_id&quot;: 4,              发货单主键id
                }
            }
        ],
        &quot;per_page&quot;: &quot;10&quot;,
    }
}
</code></pre><h4 id="-">详细</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>发货单详细</td>
<td>http</td>
<td>post</td>
<td>api/dispatch_bill_find（detail_dispatch_bill_find[无token]）</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>发货单主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 4,                            发货单主键id
        &quot;main_id&quot;: 7,
        &quot;user_id&quot;: 7,
        &quot;consignee&quot;: &quot;杨总总&quot;,              收货人
        &quot;phone&quot;: &quot;19988779988&quot;,             收货人联系电话
        &quot;address&quot;: &quot;南京火车站&quot;,            收货地址
        &quot;deliver_time&quot;: &quot;2021-09-11 00:00:00&quot;,  发货时间
        &quot;deliver_person&quot;: &quot;孙总&quot;,           发货人
        &quot;deliver_phone&quot;: &quot;18955333311&quot;,     发货人联系方式
        &quot;deliver_addr&quot;: &quot;东海大道&quot;,         发货地址
        &quot;order_no&quot;: &quot;F71636351480559&quot;,      单号
        &quot;remark&quot;: &quot;测试&quot;,                   备注
        &quot;transport_type&quot;: 2,                运输方式：1-空运 2-海运 3-铁路 4-公路
        &quot;total_piece&quot;: 20,                  商品总件数
        &quot;created_at&quot;: &quot;2021-11-08 14:04:40&quot;,
        &quot;updated_at&quot;: &quot;2021-11-08 14:04:40&quot;,
        &quot;goods_info&quot;: [
            {
                &quot;id&quot;: 8,                    商品主键id
                &quot;name&quot;: &quot;保温箱&quot;,           商品名称
                &quot;type_name&quot;: &quot;17升&quot;,        规格
                &quot;num&quot;: 2,                   商品数量
                &quot;piece&quot;: 1,                 件数
                &quot;main_id&quot;: 7,
                &quot;dispatch_bill_id&quot;: 4,
            }
        ],
        &quot;driver&quot;: {
            &quot;id&quot;: 3,                            
            &quot;plate_number&quot;: &quot;皖A*39485&quot;,        车牌
            &quot;name&quot;: &quot;干活的&quot;,                   司机姓名
            &quot;phone&quot;: &quot;18877669998&quot;,             提货司机电话
            &quot;logistics_company&quot;: &quot;德邦物流&quot;,    物流公司
            &quot;remark&quot;: &quot;&quot;,                       备注
            &quot;plate_image&quot;: &quot;bb.png&quot;,            车牌照片
            &quot;id_card_image&quot;: &quot;bb.png&quot;,          身份证照片
            &quot;driving_licence&quot;: &quot;bb.png&quot;,        驾驶证照片
            &quot;dispatch_bill_id&quot;: 4,              发货单主键id
        }
    }
}
</code></pre><h4 id="-">添加</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>添加发货单</td>
<td>http</td>
<td>post</td>
<td>api/dispatch_bill_add</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>consignee</td>
<td>是</td>
<td>否</td>
<td>收货人</td>
<td>string</td>
<td>孙先生</td>
</tr>
<tr>
<td>phone</td>
<td>是</td>
<td>否</td>
<td>收货人联系电话</td>
<td>string</td>
<td>18977687686</td>
</tr>
<tr>
<td>address</td>
<td>是</td>
<td>否</td>
<td>收货地址</td>
<td>string</td>
<td>大学城</td>
</tr>
<tr>
<td>deliver_time</td>
<td>是</td>
<td>否</td>
<td>发货时间</td>
<td>date</td>
<td>2021-11-01 20:20:20</td>
</tr>
<tr>
<td>deliver_person</td>
<td>是</td>
<td>否</td>
<td>发货人</td>
<td>string</td>
<td>孙总</td>
</tr>
<tr>
<td>deliver_phone</td>
<td>是</td>
<td>否</td>
<td>发货人联系方式</td>
<td>string</td>
<td>14289877837</td>
</tr>
<tr>
<td>deliver_addr</td>
<td>是</td>
<td>否</td>
<td>发货地址</td>
<td>string</td>
<td>东海大道</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>transport_type</td>
<td>否</td>
<td>否</td>
<td>运输方式：1-空运 2-海运 3-铁路 4-公路</td>
<td>string</td>
<td>1</td>
</tr>
<tr>
<td>total_piece</td>
<td>否</td>
<td>否</td>
<td>商品总件数</td>
<td>string</td>
<td>22</td>
</tr>
<tr>
<td>goods_info</td>
<td>否</td>
<td>否</td>
<td>商品信息</td>
<td>array</td>
<td></td>
</tr>
</tbody>
</table>
<blockquote>
<p>goods_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>商品名称</td>
<td>string</td>
<td>笔记本</td>
</tr>
<tr>
<td>type_name</td>
<td>是</td>
<td>否</td>
<td>规格</td>
<td>string</td>
<td>Mac</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>20</td>
</tr>
<tr>
<td>piece</td>
<td>是</td>
<td>否</td>
<td>件数</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: 4       发货单主键id
}
</code></pre><h4 id="-">编辑</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑发货单</td>
<td>http</td>
<td>post</td>
<td>api/dispatch_bill_edit</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>销售主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>goods_info</td>
<td>否</td>
<td>否</td>
<td>商品信息</td>
<td>array</td>
<td></td>
</tr>
<tr>
<td>consignee</td>
<td>否</td>
<td>否</td>
<td>收货人</td>
<td>string</td>
<td>孙先生</td>
</tr>
<tr>
<td>phone</td>
<td>否</td>
<td>否</td>
<td>收货人联系电话</td>
<td>string</td>
<td>18977687686</td>
</tr>
<tr>
<td>address</td>
<td>否</td>
<td>否</td>
<td>收货地址</td>
<td>string</td>
<td>大学城</td>
</tr>
<tr>
<td>deliver_time</td>
<td>否</td>
<td>否</td>
<td>发货时间</td>
<td>date</td>
<td>2021-11-01 20:20:20</td>
</tr>
<tr>
<td>deliver_person</td>
<td>否</td>
<td>否</td>
<td>发货人</td>
<td>string</td>
<td>孙总</td>
</tr>
<tr>
<td>deliver_phone</td>
<td>否</td>
<td>否</td>
<td>发货人联系方式</td>
<td>string</td>
<td>14289877837</td>
</tr>
<tr>
<td>deliver_addr</td>
<td>否</td>
<td>否</td>
<td>发货地址</td>
<td>string</td>
<td>东海大道</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>driver</td>
<td>否</td>
<td>否</td>
<td>司机信息</td>
<td>obj</td>
<td></td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>transport_type</td>
<td>否</td>
<td>否</td>
<td>运输方式：1-空运 2-海运 3-铁路 4-公路</td>
<td>string</td>
<td>1</td>
</tr>
<tr>
<td>total_piece</td>
<td>否</td>
<td>否</td>
<td>商品总件数</td>
<td>string</td>
<td>33</td>
</tr>
</tbody>
</table>
<blockquote>
<p>goods_info</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>否</td>
<td>否</td>
<td>商品主键id(编辑时需要传入)</td>
<td>string</td>
<td>3</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>商品名称</td>
<td>string</td>
<td>笔记本</td>
</tr>
<tr>
<td>type_name</td>
<td>是</td>
<td>否</td>
<td>规格</td>
<td>string</td>
<td>Mac</td>
</tr>
<tr>
<td>num</td>
<td>是</td>
<td>否</td>
<td>数量</td>
<td>integer</td>
<td>20</td>
</tr>
<tr>
<td>piece</td>
<td>是</td>
<td>否</td>
<td>件数</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>driver</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>plate_number</td>
<td>是</td>
<td>否</td>
<td>车牌</td>
<td>string</td>
<td>皖A*98098</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>司机姓名</td>
<td>string</td>
<td>孙先生</td>
</tr>
<tr>
<td>phone</td>
<td>是</td>
<td>否</td>
<td>司机电话</td>
<td>string</td>
<td>18966558875</td>
</tr>
<tr>
<td>logistics_company</td>
<td>是</td>
<td>否</td>
<td>物流公司</td>
<td>string</td>
<td>企业</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>一仓</td>
</tr>
<tr>
<td>plate_image</td>
<td>否</td>
<td>否</td>
<td>车牌照片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>id_card_image</td>
<td>否</td>
<td>否</td>
<td>身份证照片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>driving_licence</td>
<td>否</td>
<td>否</td>
<td>驾驶证照片</td>
<td>string</td>
<td>kk.png</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">删除</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>删除发货单</td>
<td>http</td>
<td>post</td>
<td>api/dispatch_bill_del</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>发货单主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">绑定司机（添加编辑）</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>绑定司机</td>
<td>http</td>
<td>post</td>
<td>api/dispatch_bill_bind_driver</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>dispatch_bill_id</td>
<td>是</td>
<td>否</td>
<td>发货单主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>plate_number</td>
<td>是</td>
<td>否</td>
<td>车牌</td>
<td>string</td>
<td>皖A*98098</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>司机姓名</td>
<td>string</td>
<td>孙先生</td>
</tr>
<tr>
<td>phone</td>
<td>是</td>
<td>否</td>
<td>司机电话</td>
<td>string</td>
<td>18966558875</td>
</tr>
<tr>
<td>logistics_company</td>
<td>是</td>
<td>否</td>
<td>物流公司</td>
<td>string</td>
<td>德邦</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>一仓</td>
</tr>
<tr>
<td>plate_image</td>
<td>否</td>
<td>否</td>
<td>车牌照片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>id_card_image</td>
<td>否</td>
<td>否</td>
<td>身份证照片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>driving_licence</td>
<td>否</td>
<td>否</td>
<td>驾驶证照片</td>
<td>string</td>
<td>kk.png</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-mr-chen-">司机(Mr Chen)</h3>
<h4 id="-">添加</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>司机添加</td>
<td>http</td>
<td>post</td>
<td>api/driver_add</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>plate_number</td>
<td>是</td>
<td>否</td>
<td>车牌</td>
<td>string</td>
<td>皖A77984</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>司机姓名</td>
<td>string</td>
<td>孙先生</td>
</tr>
<tr>
<td>phone</td>
<td>是</td>
<td>否</td>
<td>提货司机电话</td>
<td>string</td>
<td>18955333319</td>
</tr>
<tr>
<td>logistics_company</td>
<td>否</td>
<td>否</td>
<td>物流公司</td>
<td>string</td>
<td>宏迈科技</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>测试</td>
</tr>
<tr>
<td>plate_image</td>
<td>否</td>
<td>否</td>
<td>车牌照片</td>
<td>string</td>
<td>./kkkk.png</td>
</tr>
<tr>
<td>id_card_image</td>
<td>否</td>
<td>否</td>
<td>身份证照片</td>
<td>string</td>
<td>./kkkk.png</td>
</tr>
<tr>
<td>driving_licence</td>
<td>否</td>
<td>否</td>
<td>驾驶证照片</td>
<td>string</td>
<td>./kkkk.png</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">编辑</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>司机编辑</td>
<td>http</td>
<td>post</td>
<td>api/driver_edit</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>plate_number</td>
<td>否</td>
<td>否</td>
<td>车牌</td>
<td>string</td>
<td>皖A77984</td>
</tr>
<tr>
<td>name</td>
<td>否</td>
<td>否</td>
<td>司机姓名</td>
<td>string</td>
<td>孙先生</td>
</tr>
<tr>
<td>phone</td>
<td>否</td>
<td>否</td>
<td>提货司机电话</td>
<td>string</td>
<td>18955333319</td>
</tr>
<tr>
<td>logistics_company</td>
<td>否</td>
<td>否</td>
<td>物流公司</td>
<td>string</td>
<td>宏迈科技</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>测试</td>
</tr>
<tr>
<td>plate_image</td>
<td>否</td>
<td>否</td>
<td>车牌照片</td>
<td>string</td>
<td>./kkkk.png</td>
</tr>
<tr>
<td>id_card_image</td>
<td>否</td>
<td>否</td>
<td>身份证照片</td>
<td>string</td>
<td>./kkkk.png</td>
</tr>
<tr>
<td>driving_licence</td>
<td>否</td>
<td>否</td>
<td>驾驶证照片</td>
<td>string</td>
<td>./kkkk.png</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">删除</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>司机删除</td>
<td>http</td>
<td>post</td>
<td>api/driver_del</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">列表</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>司机列表</td>
<td>http</td>
<td>post</td>
<td>api/driver_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 3,
                &quot;plate_number&quot;: &quot;皖A77984&quot;,     车牌
                &quot;name&quot;: &quot;孙师傅&quot;,       司机姓名
                &quot;phone&quot;: &quot;18955333319&quot;,     提货司机电话
                &quot;logistics_company&quot;: &quot;宏迈科技&quot;,    物流公司
                &quot;remark&quot;: &quot;测试&quot;,       备注
                &quot;plate_image&quot;: &quot;./kkkk.png&quot;,    车牌照片
                &quot;id_card_image&quot;: &quot;./kdkk.png&quot;,  身份证照片
                &quot;driving_licence&quot;: &quot;./ksadf.png&quot;,       驾驶证照片
                &quot;main_id&quot;: 7,
                &quot;created_at&quot;: &quot;2021-10-25 16:10:29&quot;,
                &quot;updated_at&quot;: &quot;2021-10-25 16:10:41&quot;
            }
        ],
        &quot;per_page&quot;: &quot;10&quot;,
    }
}
</code></pre><h4 id="-">详细</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>司机详情</td>
<td>http</td>
<td>post</td>
<td>api/driver_find</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 3,
        &quot;plate_number&quot;: &quot;皖A77984&quot;,     车牌
        &quot;name&quot;: &quot;孙师傅&quot;,       司机姓名
        &quot;phone&quot;: &quot;18955333319&quot;,     提货司机电话
        &quot;logistics_company&quot;: &quot;宏迈科技&quot;,    物流公司
        &quot;remark&quot;: &quot;测试&quot;,       备注
        &quot;plate_image&quot;: &quot;./kkkk.png&quot;,    车牌照片
        &quot;id_card_image&quot;: &quot;./kdkk.png&quot;,  身份证照片
        &quot;driving_licence&quot;: &quot;./ksadf.png&quot;,       驾驶证照片
        &quot;main_id&quot;: 7,
        &quot;created_at&quot;: &quot;2021-10-25 16:10:29&quot;,
        &quot;updated_at&quot;: &quot;2021-10-25 16:10:41&quot;
    }
}
</code></pre><h4 id="-">下拉框</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>司机下拉框</td>
<td>http</td>
<td>post</td>
<td>api/driver_select</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<pre><code>无
</code></pre><blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 3,    主键id
            &quot;plate_number&quot;: &quot;皖A77984&quot;,     车牌
            &quot;name&quot;: &quot;孙师傅&quot;,       司机姓名
            &quot;phone&quot;: &quot;18955333319&quot;,     提货司机电话
            &quot;logistics_company&quot;: &quot;宏迈科技&quot;,    物流公司
            &quot;remark&quot;: &quot;测试&quot;,       备注
            &quot;plate_image&quot;: &quot;./kkkk.png&quot;,    车牌照片
            &quot;id_card_image&quot;: &quot;./kdkk.png&quot;,  身份证照片
            &quot;driving_licence&quot;: &quot;./ksadf.png&quot;,       驾驶证照片
            &quot;main_id&quot;: 7,
            &quot;created_at&quot;: &quot;2021-10-25 16:10:29&quot;,
            &quot;updated_at&quot;: &quot;2021-10-25 16:10:41&quot;
        }
    ]
}
</code></pre><h2 id="-mr-chen-">记账分类(Mr Chen)</h2>
<h3 id="-">列表</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>记账分类列表</td>
<td>http</td>
<td>post</td>
<td>api/tally_class_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<pre><code>无
</code></pre><blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 1,    主键id
            &quot;name&quot;: &quot;出货&quot;,     分类名称
            &quot;children&quot;: [{
                &quot;id&quot;: 2,    子类主键id
                &quot;name&quot;: &quot;买商铺&quot;,   分类名称
                &quot;parent_id&quot;: 1  父id
            }]
            }]
        }
    ]
}
</code></pre><h3 id="-">添加</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>记账分类添加</td>
<td>http</td>
<td>post</td>
<td>api/tally_class_add</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>分类名称</td>
<td>string</td>
<td>购买</td>
</tr>
<tr>
<td>parent_id</td>
<td>是</td>
<td>否</td>
<td>父id 一级为0</td>
<td>integer</td>
<td>0</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">编辑</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>记账分类编辑</td>
<td>http</td>
<td>post</td>
<td>api/tally_class_edit</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>name</td>
<td>否</td>
<td>否</td>
<td>分类名称</td>
<td>string</td>
<td>购买</td>
</tr>
<tr>
<td>parent_id</td>
<td>否</td>
<td>否</td>
<td>父id 一级为0</td>
<td>integer</td>
<td>0</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">删除</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>记账分类删除</td>
<td>http</td>
<td>post</td>
<td>api/tally_class_del</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>主键id(多条用逗号分隔)</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h2 id="-">设置</h2>
<h3 id="-mr-sun-">个人中心(Mr Sun)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>个人中心</td>
<td>http</td>
<td>post</td>
<td>api/user_center</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 1216, //用户id
        &quot;username&quot;: &quot;15545436518&quot;,  //用户名(即登录使用账号)
        &quot;nickname&quot;: &quot;访客&quot;,   //用户昵称
        &quot;mobile&quot;: &quot;15545436518&quot;,    //手机号
        &quot;parent_id&quot;: 8, //父级id(主账号id)
        &quot;company_name&quot;: null,   //公司名称
        &quot;company_class&quot;: 0, //公司类型id
        &quot;is_active&quot;: 1, //是否启用;0:禁用;1:启用
        &quot;parent_id&quot;: 8,//生成分享链接所需要的分享者id标识
        &quot;bind_id&quot;: 1,//分享来源id
        &quot;is_default_pwd&quot;: 0,//是否有修改默认密码;0:否;1:是;(子账号登录时返回，主账号登录无此参数)
        &quot;invite_num&quot;: 0,//成功邀请次数
        &quot;name&quot;: null,   //公司类型名称
        &quot;is_bind_openid&quot;: 1,//是否有绑定微信或小程序:0:否;1:是;
        &quot;is_vip&quot;: 0,    //是否开通vip;0:否;1:是;
        &quot;wx_nickname&quot;: &quot;joker&quot;,//微信用户昵称
        &quot;invite_info&quot;: [
            &quot;18519122462&quot;,
            &quot;15505523456&quot;
        ],//通过分享邀请并成功注册的账号信息
        &quot;today_in_storage&quot;: 10000,  //今日入库数
        &quot;today_out_storage&quot;: 10000, //今日出库数
        &quot;today_package&quot;: 10000, //套餐数量
        &quot;today_trans_storage&quot;: 10000    //调拨数量
    }
}
</code></pre><h3 id="-mr-sun-">被邀请人列表(Mr Sun)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>个人中心-被邀请人列表</td>
<td>http</td>
<td>post</td>
<td>api/invite_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,  //当前页
        &quot;data&quot;: [
            {
                &quot;nickname&quot;: &quot;访客&quot;,   //昵称
                &quot;mobile&quot;: &quot;15755299910&quot; //手机号
            }
        ],
        ......
        &quot;total&quot;: 6  //总条目数
    }
}
</code></pre><h3 id="-mr-sun-">修改手机号(Mr Sun)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>个人中心-修改手机号</td>
<td>http</td>
<td>post</td>
<td>api/change_mobile</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>mobile</td>
<td>是</td>
<td>否</td>
<td>手机号</td>
<td>string</td>
<td>181XXXXXXXX</td>
</tr>
<tr>
<td>code</td>
<td>是</td>
<td>否</td>
<td>验证码</td>
<td>string</td>
<td>123465</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">解除微信绑定</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>个人中心-解除微信绑定</td>
<td>http</td>
<td>post</td>
<td>api/relieve_wechat_bind</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">微信绑定</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>个人中心-微信绑定</td>
<td>http</td>
<td>post</td>
<td>api/wechat_bind</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>openid</td>
<td>是</td>
<td>否</td>
<td>微信openid</td>
<td>string</td>
<td>XXXXXXXX</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-mr-sun-">修改用户信息(Mr Sun)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>个人中心-修改用户信息</td>
<td>http</td>
<td>post</td>
<td>api/modify_userinfo</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>nickname</td>
<td>否</td>
<td>否</td>
<td>手机号</td>
<td>string</td>
<td>地表最强</td>
</tr>
<tr>
<td>company_name</td>
<td>否</td>
<td>否</td>
<td>验证码</td>
<td>string</td>
<td>老杨和他的朋友们有限责任公司</td>
</tr>
<tr>
<td>company_class</td>
<td>否</td>
<td>否</td>
<td>验证码</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-mr-sun-">修改用户密码(Mr Sun)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>个人中心-修改用户密码</td>
<td>http</td>
<td>post</td>
<td>api/change_password</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>old_pwd</td>
<td>是</td>
<td>否</td>
<td>旧密码</td>
<td>string</td>
<td>123456</td>
</tr>
<tr>
<td>new_pwd</td>
<td>是</td>
<td>否</td>
<td>新密码</td>
<td>string</td>
<td>654321</td>
</tr>
<tr>
<td>confirm_pwd</td>
<td>是</td>
<td>否</td>
<td>确认新密码</td>
<td>string</td>
<td>654321</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-mr-chen-">公司类型(Mr Chen)</h3>
<font color=#FF0000 size=4>  备注: 公司类型无需带token  </font>

<h4 id="-">添加</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>公司类型添加</td>
<td>http</td>
<td>post</td>
<td>api/company_class_add</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>企业分类名称</td>
<td>string</td>
<td>数码</td>
</tr>
<tr>
<td>image</td>
<td>是</td>
<td>否</td>
<td>图片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>order</td>
<td>是</td>
<td>否</td>
<td>排序</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">编辑</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>公司类型编辑</td>
<td>http</td>
<td>post</td>
<td>api/company_class_edit</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>企业类型主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>name</td>
<td>否</td>
<td>否</td>
<td>企业分类名称</td>
<td>string</td>
<td>数码</td>
</tr>
<tr>
<td>image</td>
<td>否</td>
<td>否</td>
<td>图片</td>
<td>string</td>
<td>kk.png</td>
</tr>
<tr>
<td>order</td>
<td>否</td>
<td>否</td>
<td>排序</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">删除</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>公司类型删除</td>
<td>http</td>
<td>post</td>
<td>api/company_class_del</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>企业类型主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">列表</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>公司类型列表</td>
<td>http</td>
<td>post</td>
<td>api/company_class_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<blockquote>
<p>无</p>
</blockquote>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 1,
            &quot;name&quot;: &quot;汽车&quot;,     分类名称
            &quot;image&quot;: &quot;kk.png&quot;   图片链接
            &quot;order&quot;: 3          排序
        },
        {
            &quot;id&quot;: 2,
            &quot;name&quot;: &quot;医疗&quot;,
            &quot;image&quot;: &quot;kk.png&quot;
            &quot;order&quot;: 3
        }
    ]
}
</code></pre><h3 id="-mr-chen-">版本(Mr Chen)</h3>
<font color=#FF0000 size=4>  备注: 版本无需带token  </font>

<h4 id="-">添加</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>版本添加</td>
<td>http</td>
<td>post</td>
<td>api/version_add</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>version_num</td>
<td>否</td>
<td>否</td>
<td>版本号</td>
<td>string</td>
<td>1.0002</td>
</tr>
<tr>
<td>url</td>
<td>是</td>
<td>否</td>
<td>下载链接</td>
<td>string</td>
<td>asd.apk</td>
</tr>
<tr>
<td>url_one</td>
<td>是</td>
<td>否</td>
<td>下载链接2</td>
<td>string</td>
<td>asd.apk</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">编辑</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>版本编辑</td>
<td>http</td>
<td>post</td>
<td>api/version_edit</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>企业类型主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>version_num</td>
<td>否</td>
<td>否</td>
<td>版本号</td>
<td>string</td>
<td>1.0002</td>
</tr>
<tr>
<td>url</td>
<td>否</td>
<td>否</td>
<td>下载链接</td>
<td>string</td>
<td>asd.apk</td>
</tr>
<tr>
<td>url_one</td>
<td>否</td>
<td>否</td>
<td>下载链接2</td>
<td>string</td>
<td>asd.apk</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">删除</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>版本删除</td>
<td>http</td>
<td>post</td>
<td>api/version_del</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">列表</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>版本列表</td>
<td>http</td>
<td>post</td>
<td>api/version_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 2,
                &quot;version_num&quot;: 1.0001,  版本号
                &quot;url&quot;: &quot;asd.apk&quot;,   下载链接
                &quot;url_one&quot;: &quot;d.apk&quot;, 下载链接2
                &quot;created_at&quot;: &quot;2021-10-25 16:33:21&quot;,
                &quot;updated_at&quot;: null
            }
        ],
        &quot;per_page&quot;: &quot;10&quot;,
    }
}
</code></pre></blockquote>
<h4 id="-">最新版本</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>最新版本</td>
<td>http</td>
<td>post</td>
<td>api/version_find</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<pre><code>无
</code></pre><blockquote>
<p>数据返回</p>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;version_num&quot;: 1.0003,  版本号
        &quot;url&quot;: &quot;asd.apk&quot;    下载链接
    }
}
</code></pre></blockquote>
<h3 id="-mr-chen-">反馈(Mr Chen)</h3>
<font color=#FF0000 size=4>  备注: 无需带token  </font>

<h4 id="-">列表</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>列表</td>
<td>http</td>
<td>post</td>
<td>api/feed_back_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>sartTime</td>
<td>否</td>
<td>否</td>
<td>开始时间</td>
<td>date</td>
<td>2021-11-01</td>
</tr>
<tr>
<td>endTime</td>
<td>否</td>
<td>否</td>
<td>结束时间</td>
<td>date</td>
<td>2021-11-01</td>
</tr>
<tr>
<td>tag</td>
<td>否</td>
<td>否</td>
<td>标记：1-蓝 2-黄 3-绿 4-红</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>search</td>
<td>否</td>
<td>否</td>
<td>搜索内容(手机号或账号)</td>
<td>string</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,
        &quot;data&quot;: [
            {
                &quot;id&quot;: 7,
                &quot;user_id&quot;: 7,
                &quot;username&quot;: &quot;15505523456&quot;,  账号
                &quot;mobile&quot;: null,             联系方式
                &quot;nickname&quot;: &quot;弘牧科技&quot;,      昵称
                &quot;content&quot;: &quot;测试33&quot;,         反馈内容
                &quot;remark&quot;: &quot;&quot;,               备注
                &quot;tag&quot;: 0,                   标记：1-蓝 2-黄 3-绿 4-红
                &quot;created_at&quot;: &quot;2021-12-16 14:00:28&quot;,    提交时间
                &quot;updated_at&quot;: null
            }
        ],
        &quot;per_page&quot;: &quot;10&quot;,
        &quot;total&quot;: 2
    }
}
</code></pre><h4 id="-">添加</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>添加</td>
<td>http</td>
<td>post</td>
<td>api/feed_back_add</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>content</td>
<td>是</td>
<td>否</td>
<td>反馈内容</td>
<td>string</td>
<td>测试反馈内容</td>
</tr>
<tr>
<td>user_id</td>
<td>是</td>
<td>否</td>
<td>用户id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">编辑</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑</td>
<td>http</td>
<td>post</td>
<td>api/feed_back_edit</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>备注</td>
<td>string</td>
<td>测试反馈内容</td>
</tr>
<tr>
<td>tag</td>
<td>否</td>
<td>否</td>
<td>标记：1-蓝 2-黄 3-绿 4-红</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">删除</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑</td>
<td>http</td>
<td>post</td>
<td>api/feed_back_del</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-mr-chen-">帮助(Mr Chen)</h3>
<font color=#FF0000 size=4>  备注: 无需带token  </font>

<h4 id="-">列表</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>列表</td>
<td>http</td>
<td>post</td>
<td>api/help_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>parent_id</td>
<td>否</td>
<td>否</td>
<td>父级id,0-顶级;热门问题时此参数可不填其他时必填</td>
<td>integer</td>
<td>0</td>
</tr>
<tr>
<td>hot</td>
<td>是</td>
<td>否</td>
<td>0-热门问题 1-其他</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>type</td>
<td>否</td>
<td>否</td>
<td>类型：1-帮助文档 2-安全协议 3-隐私政策</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>sartTime</td>
<td>否</td>
<td>否</td>
<td>开始时间</td>
<td>date</td>
<td>2021-11-01</td>
</tr>
<tr>
<td>endTime</td>
<td>否</td>
<td>否</td>
<td>结束时间</td>
<td>date</td>
<td>2021-11-01</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 5,
            &quot;name&quot;: &quot;测试一&quot;,
            &quot;parent_id&quot;: 1,             父级id  0为顶级
            &quot;content&quot;: &quot;&lt;p&gt;啥打法上的&lt;/p&gt;\n\n&lt;p&gt;阿斯顿发斯蒂芬&lt;/p&gt;&quot;,  富文本
            &quot;time&quot;: 8,
            &quot;type&quot;: 1,      类型：1-帮助文档 2-安全协议 3-隐私政策
            &quot;order&quot;: 0,     排序：越小越靠前
            &quot;created_at&quot;: &quot;2021-11-30 17:16:25&quot;,
            &quot;updated_at&quot;: &quot;2021-11-30 17:24:29&quot;
        }
    ]
}
</code></pre><h4 id="-">详细</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>详细</td>
<td>http</td>
<td>post</td>
<td>api/help_find</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
            &quot;id&quot;: 5,
            &quot;name&quot;: &quot;测试一&quot;,
            &quot;parent_id&quot;: 1,             父级id  0为顶级
            &quot;content&quot;: &quot;&lt;p&gt;啥打法上的&lt;/p&gt;\n\n&lt;p&gt;阿斯顿发斯蒂芬&lt;/p&gt;&quot;,  富文本
            &quot;time&quot;: 8,
            &quot;type&quot;: 1,      类型：1-帮助文档 2-安全协议 3-隐私政策
            &quot;order&quot;: 0,     排序：越小越靠前
            &quot;created_at&quot;: &quot;2021-11-30 17:16:25&quot;,
            &quot;updated_at&quot;: &quot;2021-11-30 17:24:29&quot;
        }
}
</code></pre><h4 id="-">添加</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>添加</td>
<td>http</td>
<td>post</td>
<td>api/help_add</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>分类名称</td>
<td>string</td>
<td>测试反馈内容</td>
</tr>
<tr>
<td>parent_id</td>
<td>是</td>
<td>否</td>
<td>父级id(顶级为0-协议传顶级)</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>content</td>
<td>否</td>
<td>否</td>
<td>富文本内容</td>
<td>string</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>类型：1-帮助文档 2-安全协议 3-隐私政策</td>
<td>integer</td>
<td></td>
</tr>
<tr>
<td>order</td>
<td>否</td>
<td>否</td>
<td>排序：越小越靠前</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">编辑</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑</td>
<td>http</td>
<td>post</td>
<td>api/help_edit</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>name</td>
<td>否</td>
<td>否</td>
<td>分类名称</td>
<td>string</td>
<td>测试反馈内容</td>
</tr>
<tr>
<td>parent_id</td>
<td>否</td>
<td>否</td>
<td>父级id(顶级为0-协议传顶级)</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>content</td>
<td>否</td>
<td>否</td>
<td>富文本内容</td>
<td>string</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>否</td>
<td>否</td>
<td>类型：1-帮助文档 2-安全协议 3-隐私政策</td>
<td>integer</td>
<td></td>
</tr>
<tr>
<td>order</td>
<td>否</td>
<td>否</td>
<td>排序：越小越靠前</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">删除</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>删除</td>
<td>http</td>
<td>post</td>
<td>api/help_del</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>主键id 多条用逗号分隔</td>
<td>string</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">内容点击次数统计</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>内容点击次数统计</td>
<td>http</td>
<td>post</td>
<td>api/help_open_time</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h4 id="-">安全隐私协议查询</h4>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>安全隐私协议查询</td>
<td>http</td>
<td>post</td>
<td>api/help_find_safe_privacy</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>类型 2-安全协议 3-隐私政策</td>
<td>integer</td>
<td>2</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;id&quot;: 8,
        &quot;name&quot;: &quot;测试一&quot;,
        &quot;parent_id&quot;: 0,
        &quot;content&quot;: &quot;&lt;p&gt;啥打法上的&lt;/p&gt;\n\n&lt;p&gt;阿斯顿发斯蒂芬&lt;/p&gt;\n\n&lt;h3 style=\&quot;color:#aaaaaa;font-style:italic;\&quot;&gt;fasdfasf&lt;/h3&gt;&quot;,  协议内容或隐私内容
        &quot;time&quot;: 0,
        &quot;type&quot;: 3,
        &quot;created_at&quot;: &quot;2021-12-16 14:50:53&quot;,
        &quot;updated_at&quot;: &quot;2021-12-16 14:50:53&quot;
    }
}
</code></pre><h2 id="-mr-chen-">用户管理(Mr Chen)</h2>
<h3 id="-">添加</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>添加</td>
<td>http</td>
<td>post</td>
<td>api/supplier_customer_add</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>compony_name</td>
<td>是</td>
<td>否</td>
<td>公司名称</td>
<td>string</td>
<td>宏牧科技</td>
</tr>
<tr>
<td>name</td>
<td>是</td>
<td>否</td>
<td>客户\供应商名称</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>phone</td>
<td>是</td>
<td>否</td>
<td>联系方式</td>
<td>string</td>
<td>18955333312</td>
</tr>
<tr>
<td>address</td>
<td>是</td>
<td>否</td>
<td>地址</td>
<td>string</td>
<td>安徽</td>
</tr>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>类型：0-供应商 1-客户</td>
<td>integer</td>
<td>0</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: 1 //新增id
}
</code></pre><h3 id="-">编辑</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑</td>
<td>http</td>
<td>post</td>
<td>api/supplier_customer_edit</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>供应商客户主键id</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>compony_name</td>
<td>否</td>
<td>否</td>
<td>公司名称</td>
<td>string</td>
<td>宏牧科技</td>
</tr>
<tr>
<td>name</td>
<td>否</td>
<td>否</td>
<td>客户\供应商名称</td>
<td>string</td>
<td>杨总</td>
</tr>
<tr>
<td>phone</td>
<td>否</td>
<td>否</td>
<td>联系方式</td>
<td>string</td>
<td>18955333312</td>
</tr>
<tr>
<td>address</td>
<td>否</td>
<td>否</td>
<td>地址</td>
<td>string</td>
<td>安徽</td>
</tr>
<tr>
<td>type</td>
<td>否</td>
<td>否</td>
<td>类型：0-供应商 1-客户</td>
<td>integer</td>
<td>0</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">删除</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>删除</td>
<td>http</td>
<td>post</td>
<td>api/supplier_customer_del</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>供应商客户主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">详细</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>详细</td>
<td>http</td>
<td>post</td>
<td>api/supplier_customer_find</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>否</td>
<td>供应商客户主键id</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
        &quot;code&quot;: 0,
        &quot;msg&quot;: &quot;success&quot;,
        &quot;data&quot;: {
            &quot;id&quot;: 5,    供应商客户主键id
            &quot;compony_name&quot;: &quot;红木科技&quot;,     公司名称
            &quot;name&quot;: &quot;孙先生&quot;,      客户\供应商名称
            &quot;phone&quot;: &quot;16245234&quot;,    联系方式
            &quot;address&quot;: &quot;星宇科技园&quot;,     地址
            &quot;type&quot;: 1,     类型：0-供应商 1-客户
            &quot;created_at&quot;: &quot;2021-10-14 15:41:05&quot;,    创建时间
        }
    }
</code></pre><h3 id="-">列表</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>列表</td>
<td>http</td>
<td>post</td>
<td>api/supplier_customer_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>name</td>
<td>否</td>
<td>否</td>
<td>搜索（客户\供应商名称 ）</td>
<td>string</td>
<td>孙</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,      当前页
        &quot;data&quot;: [
            {
                &quot;id&quot;: 5,    供应商客户主键id
                &quot;compony_name&quot;: &quot;红木科技&quot;,     公司名称
                &quot;name&quot;: &quot;孙先生&quot;,      客户\供应商名称
                &quot;phone&quot;: &quot;16245234&quot;,    联系方式
                &quot;address&quot;: &quot;星宇科技园&quot;,     地址
                &quot;type&quot;: 1,     类型：0-供应商 1-客户
                &quot;created_at&quot;: &quot;2021-10-14 15:41:05&quot;,    创建时间
                &quot;username&quot;: &quot;15505523456&quot;   操作人
            }
        ],
        &quot;per_page&quot;: &quot;5&quot;,    页面大小
    }
}
</code></pre><h3 id="-">下拉框</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>列表</td>
<td>http</td>
<td>post</td>
<td>api/supplier_customer_select</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td>是</td>
<td>否</td>
<td>类型：0-供应商 1-客户</td>
<td>integer</td>
<td>0</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 3,    供应商客户主键id
            &quot;name&quot;: &quot;严总&quot;    客户\供应商名称
        },
        {
            &quot;id&quot;: 5,
            &quot;name&quot;: &quot;孙先生&quot;
        }
    ]
}
</code></pre><h3 id="-">审批人下拉框(孙武)</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>编辑查询</td>
<td>http</td>
<td>post</td>
<td>api/approver_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>备注</p>
</blockquote>
<pre><code>    返回参数中`parent_id`，在本接口中，为0时表示主账号，非0时表示子账号
</code></pre><blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: [
        {
            &quot;id&quot;: 8,//用户id
            &quot;username&quot;: &quot;13911557144&quot;,//用户账号名
            &quot;nickname&quot;: &quot;掌上网络&quot;,//用户昵称
            &quot;mobile&quot;: &quot;13911557144&quot;,
            &quot;parent_id&quot;: 0
        },
        ......
    ]
}
</code></pre><h2 id="-mr-sun-">开关(Mr Sun)</h2>
<h3 id="-">设置</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>操作日志</td>
<td>http</td>
<td>post</td>
<td>api/set_switch</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>val</td>
<td>是</td>
<td>否</td>
<td>阀值</td>
<td>integer</td>
<td>1</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;&quot;
}
</code></pre><h3 id="-">获取</h3>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>操作日志</td>
<td>http</td>
<td>post</td>
<td>api/get_switch</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: &quot;1&quot; //阀值
}
</code></pre><h1 id="-mr-chen-">操作日志(Mr Chen)</h1>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>操作日志</td>
<td>http</td>
<td>post</td>
<td>api/log_list</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>是</td>
<td>否</td>
<td>页面大小</td>
<td>integer</td>
<td>10</td>
</tr>
<tr>
<td>currentPage</td>
<td>是</td>
<td>否</td>
<td>当前页</td>
<td>integer</td>
<td>1</td>
</tr>
<tr>
<td>remark</td>
<td>否</td>
<td>否</td>
<td>(搜索)操作描述</td>
<td>string</td>
<td>添加用户</td>
</tr>
</tbody>
</table>
<blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;current_page&quot;: 1,      当前页
        &quot;data&quot;: [
            {
                &quot;id&quot;: 5,
                &quot;remark&quot;: &quot;test&quot;,   操作描述
                &quot;data&quot;: {       操作内容（参数实时变动）
                    &quot;id&quot;: 5,
                    &quot;remark&quot;: &quot;test&quot;,
                    &quot;data&quot;: &quot;sdggsg&quot;,
                    &quot;ip&quot;: &quot;127.0.0.1&quot;,
                    &quot;created_at&quot;: null,
                    &quot;username&quot;: &quot;13911557144&quot;
                },
                &quot;ip&quot;: &quot;127.0.0.1&quot;,  IP地址
                &quot;created_at&quot;: 2021-10-14 09:59:52,   操作时间
                &quot;username&quot;: &quot;13911557144&quot;    操作人
            }
        ],  
        &quot;per_page&quot;: &quot;3&quot;,    页面大小
    }
}

</code></pre><h1 id="-mr-chen-">智能识别地址信息(Mr Chen)</h1>
<blockquote>
<p>接口信息</p>
</blockquote>
<table>
<thead>
<tr>
<th>接口描述</th>
<th>协议</th>
<th>请求方式</th>
<th>请求地址</th>
<th>数据返回格式</th>
</tr>
</thead>
<tbody>
<tr>
<td>智能识别地址信息</td>
<td>http</td>
<td>post</td>
<td>api/read_address</td>
<td>json</td>
</tr>
</tbody>
</table>
<blockquote>
<p>请求参数</p>
</blockquote>
<table>
<thead>
<tr>
<th>参数</th>
<th>是否必传</th>
<th>可否为空</th>
<th>说明</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>content</td>
<td>是</td>
<td>否</td>
<td>地址和姓名及手机号信息</td>
<td>integer</td>
<td>XX省XX市XX区XXXXX 张三 13333333333</td>
</tr>
</tbody>
</table>
<blockquote>
<p>备注</p>
</blockquote>
<pre><code>`content`中地址和姓名及手机号信息不区分先后顺序
</code></pre><blockquote>
<p>数据返回</p>
</blockquote>
<pre><code>{
    &quot;code&quot;: 0,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;lat&quot;: 32.910863,
        &quot;detail&quot;: &quot;星宇文化创意产业园B1-1-204&quot;,//详细地址
        &quot;town&quot;: &quot;长淮卫镇&quot;,//城镇名
        &quot;phonenum&quot;: &quot;13333333333&quot;,//手机号
        &quot;city_code&quot;: &quot;340300&quot;,
        &quot;province&quot;: &quot;安徽省&quot;, //省名
        &quot;person&quot;: &quot;阿普杜热·艾哈迈迪·尼露拜尔尔&quot;, //姓名
        &quot;lng&quot;: 117.470092,
        &quot;province_code&quot;: &quot;340000&quot;,
        &quot;text&quot;: &quot;安徽省蚌埠市龙子湖区星宇文化创意产业园B1-1-204 阿普杜热·艾哈迈迪·尼露拜尔尔 18519122462&quot;,//地址信息完整内容
        &quot;county&quot;: &quot;龙子湖区&quot;,//区划名
        &quot;city&quot;: &quot;蚌埠市&quot;,//城市名
        &quot;county_code&quot;: &quot;340302&quot;,
        &quot;town_code&quot;: &quot;340302100&quot;,
        &quot;log_id&quot;: 1494244077897175581
    }
}
</code></pre>
          	</article>
        </div>
		</div>
  </body>
</html>
<script type="text/javascript" src="toc/js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="toc/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="toc/js/ztree_toc.js"></script>
<script type="text/javascript" src="toc_conf.js"></script>

<SCRIPT type="text/javascript" >
<!--
$(document).ready(function(){
    var css_conf = eval(markdown_panel_style);
    $('#readme').css(css_conf)
    
    var conf = eval(jquery_ztree_toc_opts);
		$('#tree').ztree_toc(conf);
});
//-->
</SCRIPT>